function commerce_customer_handler_field_customer_profile::options_form in Commerce Core 7
Provide the link to profile option.
Overrides views_handler_field::options_form
File
- modules/
customer/ includes/ views/ handlers/ commerce_customer_handler_field_customer_profile.inc, line 31 - Contains the basic customer profile field handler.
Class
- commerce_customer_handler_field_customer_profile
- Field handler to provide simple renderer that allows linking to a profile.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_profile'] = array(
'#title' => t("Link this field to the profile's administrative view page"),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_profile']),
);
}