0

I followed a tutorial on how to use the jump menu functionality in views drupal 7 link http://dev.nodeone.se/node/771,it was successful. i have one problem though,I need to show a default value(for example a taxonomy term by default) if nothing is selected instead of the drupal default to -select- . i have opened the file in views/plugins/views_plugin_style_jump_menu.inc and found this code,it looks like here is where i am supposed to change. but i just dont understand this code. Any help will be appreciated

 
function option_definition() {
    $options = parent::option_definition();
    $options['hide'] = array('default' => FALSE);
    $options['path'] = array('default' => '');
    $options['text'] = array('default' => 'Go', 'translatable' => TRUE);
    $options['choose'] = array('default' => '- Choose -', 'translatable' => TRUE);
    $options['default_value'] = array('default' => FALSE);

    return $options;
  }
?>

1 Answer 1

0

I figured it out, just went to views admin, deleted the -select-, reordered my taxonomy terms and bum!! it worked! am so dumb.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.