function command_buttons_node_type_delete in Command Buttons 7
Implements hook_node_type_delete().
File
- ./
command_buttons.module, line 215
Code
function command_buttons_node_type_delete($info) {
if (command_buttons_machine_name_exists($info->name)) {
$bid = db_select('command_buttons', 'b')
->fields('b', array(
'bid',
))
->condition('name', $info->name)
->execute()
->fetchField();
command_buttons_delete($bid);
}
}