function nodeaccess_delete_type_grant in Nodeaccess 7
Delete the grant tab for specified node type.
Parameters
string $type: The node type we are removing the grant tab from.
1 call to nodeaccess_delete_type_grant()
- NodeaccesssGrantTabTestCase::testGrantTabVisbility in tests/
nodeaccess_grant.test - Make sure the 'Grant' tab is available from the node view when appropriate. @test
File
- ./
nodeaccess.module, line 1095 - Provide per node access control
Code
function nodeaccess_delete_type_grant($type) {
$grants = variable_get('nodeaccess-types', array());
if (isset($grants[$type])) {
unset($grants[$type]);
}
nodeaccess_set_type_grants($grants);
}