function nodewords_tokens_install in Nodewords: D6 Meta Tags 6.2
Implements hook_install().
File
- nodewords_tokens/
nodewords_tokens.install, line 11 - Install, update and uninstall functions for the Tokens for meta tags module.
Code
function nodewords_tokens_install() {
$node_types = array_keys(node_get_types('names'));
$variables = array(
'nodewords_filter_modules_output_',
'nodewords_filter_regexp_',
'nodewords_use_alt_attribute_',
);
foreach ($node_types as $node_type) {
foreach ($variables as $variable) {
variable_del($variable . $node_type);
}
}
db_query("UPDATE {system} SET weight = 12 WHERE name = 'nodewords_tokens' AND type = 'module'");
}