function metatag_hreflang_form_metatag_admin_settings_form_alter in Metatag 7
Implements hook_form_FORM_ID_alter() for metatag_admin_settings_form().
File
- metatag_hreflang/
metatag_hreflang.module, line 52 - Primary hook implementations for Metatag:hreflang.
Code
function metatag_hreflang_form_metatag_admin_settings_form_alter(&$form, &$form_state, $form_id) {
$form['advanced']['metatag_hreflang_allow_dupe'] = array(
'#type' => 'checkbox',
'#title' => t('Allow hreflang tag that matches the x-default tag'),
'#description' => t('It is recommended to not have hreflang="x-default" and hreflang="SOMELANGCODE" meta tags pointing at the same URL. By default if there is a hreflang="SOMELANGCODE" meta tag with the same URL as the hreflang="x-default" meta tag then the hreflang="SOMELANGCODE" tag will be removed.'),
'#default_value' => variable_get('metatag_hreflang_allow_dupe', FALSE),
);
}