* Define the configuration form for our textfield.
*/
function options_form(&$form, &$form_state) {
+ $form['label'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Label'),
+ '#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
+ '#description' => t('The label for this field that will be displayed to end users if the style requires it.'),
+ );
+
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Text to display'),
'#default_value' => $this->options['text'],
'#description' => t('Define the text to use for the link title. You can use replacement tokens to insert any existing field output.'),
- '#process' => array('views_process_dependency'),
- '#dependency' => array(
- 'edit-options-alter-alter-text' => array(1)
- )
);
$form['subject'] = array(
'#title' => t('Pre-filled subject'),
'#default_value' => $this->options['subject'],
'#description' => t('Define the subject that will be pre-filled in the send message form. You can use replacement tokens to insert any existing field output.'),
- '#process' => array('views_process_dependency'),
- '#dependency' => array(
- 'edit-options-alter-alter-text' => array(1)
- )
);
// Get a list of the available fields and arguments for token replacement.
}
}
- $form['alter']['help'] = array(
- '#type' => 'hidden',
+ $form['help'] = array(
+ '#type' => 'markup',
'#id' => 'views-tokens-help',
- '#prefix' => '<div><fieldset id="views-tokens-help"><legend>' . t('Replacement patterns') . '</legend>' . $output . '</fieldset></div>',
- '#process' => array('views_process_dependency'),
- '#dependency' => array(
- 'edit-options-alter-make-link' => array(1),
- 'edit-options-alter-alter-text' => array(1),
- ),
+ '#value' => '<div><fieldset id="views-tokens-help"><legend>' . t('Replacement patterns') . '</legend>' . $output . '</fieldset></div>',
);
$form['return'] = array(