summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-23 18:25:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-23 18:25:05 +0000
commitc10220f9bf7e5c520cc69b3f106b4fbfb4239505 (patch)
tree3172131af3433114b6ceb5773e27324dcef4b555
parentecf913b37f71b55ba19c0cf3a65861b6f3879d60 (diff)
downloadbrdo-c10220f9bf7e5c520cc69b3f106b4fbfb4239505.tar.gz
brdo-c10220f9bf7e5c520cc69b3f106b4fbfb4239505.tar.bz2
#738512 by sun: Fixed Node permissions are ordered oddly.
-rw-r--r--modules/node/node.module30
1 files changed, 15 insertions, 15 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 710a3851a..525412d16 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1462,6 +1462,11 @@ function template_preprocess_node(&$variables) {
*/
function node_permission() {
$perms = array(
+ 'bypass node access' => array(
+ 'title' => t('Bypass content access control'),
+ 'description' => t('View, edit and delete all content regardless of permission restrictions.'),
+ 'restrict access' => TRUE,
+ ),
'administer content types' => array(
'title' => t('Administer content types'),
'restrict access' => TRUE,
@@ -1470,16 +1475,14 @@ function node_permission() {
'title' => t('Administer content'),
'restrict access' => TRUE,
),
- 'access content' => array(
- 'title' => t('View published content'),
- ),
'access content overview' => array(
'title' => t('Access the content overview page'),
),
- 'bypass node access' => array(
- 'title' => t('Bypass content access control'),
- 'description' => t('View, edit and delete all content regardless of permission restrictions.'),
- 'restrict access' => TRUE,
+ 'access content' => array(
+ 'title' => t('View published content'),
+ ),
+ 'view own unpublished content' => array(
+ 'title' => t('View own unpublished content'),
),
'view revisions' => array(
'title' => t('View content revisions'),
@@ -1490,9 +1493,6 @@ function node_permission() {
'delete revisions' => array(
'title' => t('Delete content revisions'),
),
- 'view own unpublished content' => array(
- 'title' => t('View own unpublished content'),
- ),
);
// Generate standard node permissions for all applicable node types.
@@ -2925,19 +2925,19 @@ function node_list_permissions($type) {
// Build standard list of node permissions for this type.
$perms = array(
"create $type content" => array(
- 'title' => t('Create new %type_name content', array('%type_name' => $info->name)),
+ 'title' => t('%type_name: Create new content', array('%type_name' => $info->name)),
),
"edit own $type content" => array(
- 'title' => t('Edit own %type_name content', array('%type_name' => $info->name)),
+ 'title' => t('%type_name: Edit own content', array('%type_name' => $info->name)),
),
"edit any $type content" => array(
- 'title' => t('Edit any %type_name content', array('%type_name' => $info->name)),
+ 'title' => t('%type_name: Edit any content', array('%type_name' => $info->name)),
),
"delete own $type content" => array(
- 'title' => t('Delete own %type_name content', array('%type_name' => $info->name)),
+ 'title' => t('%type_name: Delete own content', array('%type_name' => $info->name)),
),
"delete any $type content" => array(
- 'title' => t('Delete any %type_name content', array('%type_name' => $info->name)),
+ 'title' => t('%type_name: Delete any content', array('%type_name' => $info->name)),
),
);