You are here

function _node_privacy_byrole_get_default_roles in node privacy byrole 6

Same name and namespace in other branches
  1. 5 node_privacy_byrole.module \_node_privacy_byrole_get_default_roles()

Returns those role id's that are permitted to do $action on a $type node

3 calls to _node_privacy_byrole_get_default_roles()
node_privacy_byrole_nodeapi_prepare in ./node_privacy_byrole.module
node_privacy_byrole_node_type_form in ./node_privacy_byrole.module
Form elements that extends node type form Used for set the default permission settings per node type
node_privacy_byrole_user_has_meta_perm in ./node_privacy_byrole.module
Checks that the active user has access to set permissions on nodes.

File

./node_privacy_byrole.module, line 246
Set node access permissions by role.

Code

function _node_privacy_byrole_get_default_roles($type, $action) {
  return variable_get('npbr_default_' . $action . '_perms_' . $type, array());
}