diff --git a/plugins/views_plugin_style_jump_menu.inc b/plugins/views_plugin_style_jump_menu.inc index f571f6225751052fc9a5a26b4a417cda518c33c1..a07567c0decc78fe90df6ecf05d7b850111eaba0 100644 --- a/plugins/views_plugin_style_jump_menu.inc +++ b/plugins/views_plugin_style_jump_menu.inc @@ -17,6 +17,7 @@ class views_plugin_style_jump_menu extends views_plugin_style { $options['hide'] = array('default' => FALSE, 'bool' => TRUE); $options['path'] = array('default' => ''); $options['text'] = array('default' => 'Go', 'translatable' => TRUE); + $options['label'] = array('default' => '', 'translatable' => TRUE); $options['choose'] = array('default' => '- Choose -', 'translatable' => TRUE); $options['default_value'] = array('default' => FALSE, 'bool' => TRUE); @@ -68,6 +69,13 @@ class views_plugin_style_jump_menu extends views_plugin_style { '#default_value' => $this->options['text'], ); + $form['label'] = array( + '#type' => 'textfield', + '#title' => t('Selector label'), + '#default_value' => $this->options['label'], + '#description' => t('The text that will appear as the the label of the selector element. If blank no label tag will be used.'), + ); + $form['choose'] = array( '#type' => 'textfield', '#title' => t('Choose text'), @@ -135,6 +143,7 @@ class views_plugin_style_jump_menu extends views_plugin_style { $settings = array( 'hide' => $this->options['hide'], 'button' => $this->options['text'], + 'title' => $this->options['label'], 'choose' => $this->options['choose'], 'default_value' => $default_value, ); diff --git a/plugins/views_plugin_style_summary_jump_menu.inc b/plugins/views_plugin_style_summary_jump_menu.inc index 5b02163d85b7c2676b51ab21adca8aa4c1eaafe3..d5100df0ef8f79ddb984f8cce70922e08237b628 100644 --- a/plugins/views_plugin_style_summary_jump_menu.inc +++ b/plugins/views_plugin_style_summary_jump_menu.inc @@ -18,6 +18,7 @@ class views_plugin_style_summary_jump_menu extends views_plugin_style { $options['count'] = array('default' => TRUE, 'bool' => TRUE); $options['hide'] = array('default' => FALSE, 'bool' => TRUE); $options['text'] = array('default' => 'Go', 'translatable' => TRUE); + $options['label'] = array('default' => '', 'translatable' => TRUE); $options['choose'] = array('default' => '- Choose -', 'translatable' => TRUE); $options['default_value'] = array('default' => FALSE, 'bool' => TRUE); @@ -63,6 +64,13 @@ class views_plugin_style_summary_jump_menu extends views_plugin_style { '#default_value' => $this->options['text'], ); + $form['label'] = array( + '#type' => 'textfield', + '#title' => t('Selector label'), + '#default_value' => $this->options['label'], + '#description' => t('The text that will appear as the the label of the selector element. If blank no label tag will be used.'), + ); + $form['choose'] = array( '#type' => 'textfield', '#title' => t('Choose text'), @@ -119,6 +127,7 @@ class views_plugin_style_summary_jump_menu extends views_plugin_style { $settings = array( 'hide' => $this->options['hide'], 'button' => $this->options['text'], + 'title' => $this->options['label'], 'choose' => $this->options['choose'], 'default_value' => $default_value, );