function protected_node_node_type_delete in Protected Node 7
Same name and namespace in other branches
- 1.0.x protected_node.module \protected_node_node_type_delete()
Implements hook_node_type_delete().
This function deletes the variables corresponding to the fields added to the node type form.
@param[in] $op The operation performed on the node type. @param[in] $type The type object concerned.
File
- ./
protected_node.module, line 1119 - Protected Node module.
Code
function protected_node_node_type_delete($info) {
variable_del('protected_node_fieldset_' . $info->type);
variable_del('protected_node_protection_' . $info->type);
variable_del('protected_node_node_type_password_' . $info->type);
// Should already be deleted by the submit().
variable_del('protected_node_node_type_password_field_' . $info->type);
}