public function role_expire_handler_field_rid::options_form in Role Expire 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field_prerender_list::options_form
File
- ./
role_expire.views.inc, line 410 - Role Expire Views hooks
Class
- role_expire_handler_field_rid
- Class role_expire_handler_field_rid.
Code
public function options_form(&$form, &$form_state) {
$form['role_value'] = array(
'#type' => 'select',
'#title' => t('Role display'),
'#options' => array(
'name' => t('Role name'),
'rid' => t('Role ID'),
),
'#default_value' => isset($this->options['role_value']) ? $this->options['role_value'] : 'name',
);
parent::options_form($form, $form_state);
}