function _content_access_get_operations in Content Access 7
Same name and namespace in other branches
- 8 content_access.module \_content_access_get_operations()
- 6 content_access.module \_content_access_get_operations()
Returns an array of possible operations on content and their labels.
10 calls to _content_access_get_operations()
- content_access_action_grant_node_permissions in content_access_rules/
content_access_rules.rules.inc - Action implementation: Grant permissions for a node.
- content_access_action_revoke_node_permissions in content_access_rules/
content_access_rules.rules.inc - Action implementation: Revoke permissions for a node.
- content_access_action_roles_permissions_list in content_access_rules/
content_access_rules.rules.inc - Returns an options list array for the content access permission parameter.
- content_access_action_settings in content_access_rules/
content_access_rules.rules.inc - Split the settings string into array.
- content_access_admin_settings in ./
content_access.admin.inc - Per content type settings form.
File
- ./
content_access.module, line 602 - Content access module file.
Code
function _content_access_get_operations($type = NULL) {
$operations = array(
'view' => t('View any @type content', array(
'@type' => $type,
)),
'view_own' => t('View own @type content', array(
'@type' => $type,
)),
'update' => t('Edit any @type content', array(
'@type' => $type,
)),
'update_own' => t('Edit own @type content', array(
'@type' => $type,
)),
'delete' => t('Delete any @type content', array(
'@type' => $type,
)),
'delete_own' => t('Delete own @type content', array(
'@type' => $type,
)),
);
return $operations;
}