public function entity_views_handler_field_options::options_form in Entity API 7
Returns an option form for setting this handler's options.
Overrides views_handler_field::options_form
File
- views/
handlers/ entity_views_handler_field_options.inc, line 83 - Contains the entity_views_handler_field_options class.
Class
- entity_views_handler_field_options
- A handler to provide proper displays for values chosen from a set of options.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
EntityFieldHandlerHelper::options_form($this, $form, $form_state);
$form['format_name'] = array(
'#title' => t('Use human-readable name'),
'#type' => 'checkbox',
'#description' => t("If this is checked, the values' names will be displayed instead of their internal identifiers."),
'#default_value' => $this->options['format_name'],
'#weight' => -5,
);
}