19 Feb
2005
19 Feb
'05
8:29 p.m.
Now we know what Carl suggests us and I think that worth some consideration: the access denied text shall be changeable upon call time. Piece of cake: function drupal_access_denied($message = NULL) { if (is_null($message)) { $message = t('You are not authorized to access this page.'); } ... drupal_set_title($message); } This does not break the current translation mechanism and a call to drupal_access_denied(t('You do not have access rights in this area please check with the administrator')) is possible. If this is considered a good idea and we can spot other candidates for a similar change, then maybe that if(is_null( construct could be moved to another function which might be drupal_message. Regards Karoly Negyesi