function profanity_views_handler_field::options_form in Profanity 7
Provide link to node option
Overrides views_handler_field::options_form
1 call to profanity_views_handler_field::options_form()
- profanity_views_handler_search_excerpt::options_form in ./
profanity.views.inc - Provide link to node option
1 method overrides profanity_views_handler_field::options_form()
- profanity_views_handler_search_excerpt::options_form in ./
profanity.views.inc - Provide link to node option
File
- ./
profanity.views.inc, line 101 - Provide additional Views fields for entity content.
Class
- profanity_views_handler_field
- Field handler to provide simple renderer that allows linking to a entity. Definition terms:
Code
function options_form(&$form, &$form_state) {
$form['link_to_entity'] = array(
'#title' => t('Link this field to the original piece of content'),
'#description' => t("Enable to override this field's links."),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_entity']),
);
$form['profanity_lists'] = array(
'#title' => t('Profanity lists to run'),
'#type' => 'checkboxes',
'#options' => profanity_get_lists_flat(),
'#default_value' => !empty($this->options['profanity_lists']) ? $this->options['profanity_lists'] : array(),
'#description' => t('Select which lists will be applied to the entity title.'),
);
parent::options_form($form, $form_state);
}