function metatags_quick_field_formatter_settings_form in Meta tags quick 7.2
Implements hook_field_formatter_settings_form().
File
- ./
metatags_quick.module, line 355 - Quick and dirty implementation of meta tags for drupal 7 Module defines new field type 'meta'. Fields of this type are not displayed in HTML. Instead, they add html meta to the head section.
Code
function metatags_quick_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$element = array();
if ($display['type'] == 'metatags_quick_title') {
$element['method'] = array(
'#type' => 'radios',
'#title' => t('Method'),
'#options' => array(
'set_title' => t('drupal_set_title (completely replaces the page title)'),
'preprocess_html' => t('preprocess_html (only sets the HTML HEAD title)'),
),
'#description' => t('Select method for setting title. The preprocess_html method only sets the title seen by search engines and used by the browser for the window title.'),
'#default_value' => $settings['method'],
);
}
return $element;
}