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