function activity_views_handler_field_serial::options_form in Activity 6
File
- views/
activity_views_handler_field_serial.inc, line 5
Class
Code
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['exclude'] = array(
'#type' => 'checkbox',
'#title' => t('Exclude from display'),
'#default_value' => $this->options['exclude'],
'#description' => t('Check this box to not display this field, but still load it in the view. Use this option to not show a grouping field in each record, or when doing advanced theming.'),
);
$form['link_object'] = array(
'#type' => 'radios',
'#title' => t('Link to object'),
'#description' => t('Link to the user id or node id'),
'#default_value' => $form_state['values']['link_object'] ? $form_state['values']['link_object'] : 1,
'#options' => array(
0 => t('No'),
1 => t('Yes'),
),
);
$form['target_role'] = array(
'#type' => 'radios',
'#title' => t('Target Role'),
'#description' => t('The target role that the message is visible to.'),
'#default_value' => $form_state['values']['target_role'] ? $form_state['values']['target_role'] : 'all',
'#options' => array(
'all' => t('All'),
'author' => t('Author'),
),
'#multiple' => TRUE,
);
return $form;
}