function commerce_cardonfile_handler_field_card_number::options_form in Commerce Card on File 7.2
Provide the link to card option.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ commerce_cardonfile_handler_field_card_number.inc, line 18
Class
- commerce_cardonfile_handler_field_card_number
- Field handler to present the truncated card number with optional formatting.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['format'] = array(
'#type' => 'checkbox',
'#title' => t('Display formatted'),
'#description' => t('If the truncated card number is "1234", the output will be "XXXX-XXXX-XXXX-1234".'),
'#default_value' => $this->options['format'],
);
}