t('Go'), 'choose' => t('- Choose -'), 'inline' => TRUE, 'hide' => TRUE, ); ctools_add_js('jump-menu'); if (!empty($options['choose'])) { $select = array('' => $options['choose']) + $select; } $form['jump'] = array( '#type' => 'select', '#options' => $select, '#attributes' => array( 'class' => array('ctools-jump-menu-select'), ), ); if (!empty($options['title'])) { $form['jump']['#title'] = $options['title']; } if (!empty($options['description'])) { $form['jump']['#description'] = $options['description']; } if (!empty($options['default_value'])) { $form['jump']['#default_value'] = $options['default_value']; } if (isset($options['image'])) { $form['go'] = array( '#type' => 'image_button', '#src' => $options['image'], '#submit' => array('ctools_jump_menu_submit'), '#attributes' => array( 'class' => array('ctools-jump-menu-button'), ), ); } else { $form['go'] = array( '#type' => 'submit', '#value' => $options['button'], '#attributes' => array( 'class' => array('ctools-jump-menu-button'), ), ); } if ($options['inline']) { $form['jump']['#prefix'] = '