function telephone_field_formatter_settings_form in Telephone 7
Implements hook_field_formatter_settings_form().
File
- ./
telephone.module, line 114 - Defines a simple telephone number field type.
Code
function telephone_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$elements['title'] = array(
'#type' => 'textfield',
'#title' => t('Title to replace basic numeric telephone number display.'),
'#default_value' => $settings['title'],
);
return $elements;
}