--- common.inc~ 2005-02-20 00:27:23.000000000 +0100 +++ common.inc 2005-02-20 00:30:03.000000000 +0100 @@ -221,7 +221,7 @@ function drupal_not_found() { /** * Generates a 403 error if the request is not allowed. */ -function drupal_access_denied() { +function drupal_access_denied($message = NULL) { header('HTTP/1.0 403 Forbidden'); watchdog('access denied', t('%page denied access.', array('%page' => ''. db_escape_string($_GET['q']) .'')), WATCHDOG_WARNING, l(t('view'), $_GET['q'])); @@ -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', is_null($message) ? t('You are not authorized to access this page.') : $message); } } @@ -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.module18 Feb 2005 18:40:05 -00001.465 +++ modules/node.module19 Feb 2005 19:40:41 -0000 @@ -1436,7 +1436,7 @@ function node_add($type) { $output = t('Choose the appropriate item from the list:') .'