function views_rss_handler_field_user_mail::options_form in Views RSS 7.2
Same name and namespace in other branches
- 6.2 views/views_rss_handler_field_user_mail.inc \views_rss_handler_field_user_mail::options_form()
Provide link to node option.
Overrides views_handler_field_user_mail::options_form
File
- views/
views_rss_handler_field_user_mail.inc, line 16 - Field handler to provide additional control for the email field.
Class
- views_rss_handler_field_user_mail
- @file Field handler to provide additional control for the email field.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['rss_format'] = array(
'#title' => t('Display type'),
'#type' => 'select',
'#options' => array(
'default' => t('Generic email'),
'with_name' => t('RSS <author> element (with user name)'),
),
'#default_value' => isset($this->options['rss_format']) ? $this->options['rss_format'] : 'default',
'#weight' => 0,
);
// Hide "Link this field" radios if "RSS <author> element"
// is selected as "Display type".
$form['link_to_user']['#states'] = array(
'visible' => array(
':input[name="options[rss_format]"]' => array(
'!value' => 'with_name',
),
),
);
}