Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.425 diff -u -F^f -r1.425 common.inc --- includes/common.inc 9 Feb 2005 17:33:53 -0000 1.425 +++ includes/common.inc 19 Feb 2005 19:40:41 -0000 @@ -234,7 +234,7 @@ function drupal_access_denied() { if ($status != MENU_FOUND) { drupal_set_title(t('Access denied')); - print theme('page', message_access()); + print theme('page', t('You are not authorized to access this page.')); } } @@ -463,16 +463,6 @@ function object2array($object) { */ /** - * Return a string with an "access denied" message. - * - * Always consider whether to use drupal_access_denied() instead to return a - * proper (and customizable) 403 error. - */ -function message_access() { - return t('You are not authorized to access this page.'); -} - -/** * Return a string with a "not applicable" message. */ function message_na() { Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.465 diff -u -F^f -r1.465 node.module --- modules/node.module 18 Feb 2005 18:40:05 -0000 1.465 +++ modules/node.module 19 Feb 2005 19:40:41 -0000 @@ -1436,7 +1436,7 @@ function node_add($type) { $output = t('Choose the appropriate item from the list:') .''; } else { - $output = message_access(); + $output = t('You are not allowed to create content.'); } } Index: modules/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi.module,v retrieving revision 1.37 diff -u -F^f -r1.37 blogapi.module --- modules/blogapi.module 31 Jan 2005 19:36:20 -0000 1.37 +++ modules/blogapi.module 19 Feb 2005 19:40:41 -0000 @@ -148,7 +148,7 @@ function blogapi_new_post($req_params) { } if (!node_access('create', $node)) { - return blogapi_error(message_access()); + return blogapi_error(t('You do not have permission to create the type of post you wanted to create.')); } $nid = node_save($node); @@ -183,7 +183,7 @@ function blogapi_edit_post($req_params) unset($node->teaser); if (!node_access('update', $node)) { - return blogapi_error(message_access()); + return blogapi_error(t('You do not have permission to update this post.')); } $node->status = $params[4]; @@ -438,7 +438,7 @@ function blogapi_publish_post($req_param $node->status = 1; if (!node_access('update', $node)) { - return blogapi_error(message_access()); + return blogapi_error(t('You do not have permission to update this post.')); } node_save($node); @@ -490,7 +490,7 @@ function blogapi_validate_user($username return $user; } else { - return message_access(); + return t("You either tried to edit somebody else's blog or you don't have permission to edit your own blog."); } } else {