function flag_node_type in Flag 5
Same name and namespace in other branches
- 6.2 flag.module \flag_node_type()
- 6 flag.module \flag_node_type()
Implementation of hook_node_type().
File
- ./
flag.module, line 384 - The Flag module.
Code
function flag_node_type($op, $info) {
switch ($op) {
case 'delete':
// Remove entry from flaggable content types.
db_query("DELETE FROM {flag_types} WHERE type = '%s'", $info->type);
break;
}
}