function commerce_file_handler_field_license::options_form in Commerce File 7
Provide the link to order option.
Overrides views_handler_field::options_form
File
- views/
handlers/ commerce_file_handler_field_license.inc, line 32 - Contains the basic license field handler.
Class
- commerce_file_handler_field_license
- Field handler to provide simple renderer that allows linking to an entity.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_entity'] = array(
'#type' => 'radios',
'#title' => t('Link this field to'),
'#description' => t('If User or Administrator are selected, this will override any other link you have set.'),
'#options' => array(
'none' => t('Nothing, unless specified in <em>Rewrite results</em>'),
'user' => t('The user view page'),
'admin' => t('The administrator view page'),
),
'#default_value' => $this->options['link_to_entity'],
);
}