function metatag_config_enable in Metatag 7
Menu callback for enabling a default configuration.
Parameters
object $config: The default configuration object to enable.
1 string reference to 'metatag_config_enable'
- metatag_menu in ./
metatag.module - Implements hook_menu().
File
- ./
metatag.admin.inc, line 365 - Administration page callbacks for the metatag module.
Code
function metatag_config_enable($config) {
if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], 'enable-' . $config->instance)) {
return MENU_ACCESS_DENIED;
}
ctools_export_crud_enable('metatag_config', $config);
$label = metatag_config_instance_label($config->instance);
drupal_set_message(t('The meta tag defaults for @label have been enabled.', array(
'@label' => $label,
)));
drupal_goto();
}