You are here

function nodeaccess_set_type_grants in Nodeaccess 7

Set the grant tab settings for all node types.

Parameters

array $types: The types that will have the grant tab appear.

3 calls to nodeaccess_set_type_grants()
nodeaccess_add_type_grant in ./nodeaccess.module
Add the grant tab to the specified node type.
nodeaccess_admin_form_submit in ./nodeaccess.admin.inc
Submit function for nodeaccess_admin_form.
nodeaccess_delete_type_grant in ./nodeaccess.module
Delete the grant tab for specified node type.

File

./nodeaccess.module, line 1112
Provide per node access control

Code

function nodeaccess_set_type_grants($types = array()) {
  if (!is_array($types)) {
    return;
  }
  variable_set('nodeaccess-types', $types);
  node_access_needs_rebuild(TRUE);
}