function _content_access_get_operations in Content Access 8
Same name and namespace in other branches
- 6 content_access.module \_content_access_get_operations()
- 7 content_access.module \_content_access_get_operations()
Returns an array of possible operations on content and their labels.
7 calls to _content_access_get_operations()
- ActionGrantNodePermissions::execute in src/
Plugin/ RulesAction/ ActionGrantNodePermissions.php - Executes the plugin.
- ActionRevokeNodePermissions::execute in src/
Plugin/ RulesAction/ ActionRevokeNodePermissions.php - Executes the plugin.
- ContentAccessAdminSettingsForm::buildForm in src/
Form/ ContentAccessAdminSettingsForm.php - Form constructor.
- ContentAccessPageForm::buildForm in src/
Form/ ContentAccessPageForm.php - Form constructor.
- ContentAccessPageForm::submitForm in src/
Form/ ContentAccessPageForm.php - Form submission handler.
File
- ./
content_access.module, line 695 - Content access module file.
Code
function _content_access_get_operations($type = NULL) {
$operations = [
'view' => t('View any @type content', [
'@type' => $type,
]),
'view_own' => t('View own @type content', [
'@type' => $type,
]),
'update' => t('Edit any @type content', [
'@type' => $type,
]),
'update_own' => t('Edit own @type content', [
'@type' => $type,
]),
'delete' => t('Delete any @type content', [
'@type' => $type,
]),
'delete_own' => t('Delete own @type content', [
'@type' => $type,
]),
];
return $operations;
}