diff --git a/lib/Drupal/ctools/Plugin/views/style/JumpMenu.php b/lib/Drupal/ctools/Plugin/views/style/JumpMenu.php index ad3419c..19a01dd 100644 --- a/lib/Drupal/ctools/Plugin/views/style/JumpMenu.php +++ b/lib/Drupal/ctools/Plugin/views/style/JumpMenu.php @@ -46,6 +46,7 @@ class JumpMenu extends StylePluginBase { $options['path'] = array('default' => ''); $options['text'] = array('default' => 'Go', 'translatable' => TRUE); $options['choose'] = array('default' => '- Choose -', 'translatable' => TRUE); + $options['inline'] = array('default' => TRUE, 'bool' => TRUE); $options['default_value'] = array('default' => FALSE, 'bool' => TRUE); return $options; @@ -103,6 +104,12 @@ class JumpMenu extends StylePluginBase { '#description' => t('The text that will appear as the selected option in the jump menu.'), ); + $form['inline'] = array( + '#type' => 'checkbox', + '#title' => t('Set this field to display inline'), + '#default_value' => !empty($this->options['inline']), + ); + $form['default_value'] = array( '#type' => 'checkbox', '#title' => t('Select the current contextual filter value'), @@ -164,6 +171,7 @@ class JumpMenu extends StylePluginBase { 'hide' => $this->options['hide'], 'button' => $this->options['text'], 'choose' => $this->options['choose'], + 'inline' => $this->options['inline'], 'default_value' => $default_value, ); diff --git a/lib/Drupal/ctools/Plugin/views/style/JumpMenuSummary.php b/lib/Drupal/ctools/Plugin/views/style/JumpMenuSummary.php index a7eeece..f047d7f 100644 --- a/lib/Drupal/ctools/Plugin/views/style/JumpMenuSummary.php +++ b/lib/Drupal/ctools/Plugin/views/style/JumpMenuSummary.php @@ -36,6 +36,7 @@ class JumpMenuSummary extends DefaultSummary { $options['hide'] = array('default' => FALSE, 'bool' => TRUE); $options['text'] = array('default' => 'Go', 'translatable' => TRUE); $options['choose'] = array('default' => '- Choose -', 'translatable' => TRUE); + $options['inline'] = array('default' => TRUE, 'bool' => TRUE); $options['default_value'] = array('default' => FALSE, 'bool' => TRUE); return $options; @@ -87,6 +88,12 @@ class JumpMenuSummary extends DefaultSummary { '#description' => t('The text that will appear as the selected option in the jump menu.'), ); + $form['inline'] = array( + '#type' => 'checkbox', + '#title' => t('Set this field to display inline'), + '#default_value' => !empty($this->options['inline']), + ); + $form['default_value'] = array( '#type' => 'checkbox', '#title' => t('Select the current contextual filter value'), @@ -137,6 +144,7 @@ class JumpMenuSummary extends DefaultSummary { 'hide' => $this->options['hide'], 'button' => $this->options['text'], 'choose' => $this->options['choose'], + 'inline' => $this->options['inline'], 'default_value' => $default_value, );