function commerce_invoice_handler_field_invoice::options_form in Commerce Invoice 7
Provide the link to invoice option.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ commerce_invoice_handler_field_invoice.inc, line 34 - Contains the basic invoice field handler.
Class
- commerce_invoice_handler_field_invoice
- Field handler to provide simple renderer that allows linking to an invoice.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_invoice'] = array(
'#type' => 'radios',
'#title' => t('Link this field to'),
'#description' => t('If Customer 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> below'),
'customer' => t('The customer view page'),
'admin' => t('The administrator view page'),
),
'#default_value' => $this->options['link_to_invoice'],
);
}