There are 2 cases of a missing "the":
if (empty($forum_types)) {
// The user is logged-in; but denied access to create any new forum content type.
if ($user->uid) {
$forum_types['disallowed'] = array('title' => t('You are not allowed to post new content in forum.'));
}
// The user is not logged-in; and denied access to create any new forum content type.
else {
$forum_types['login'] = array('title' => t('<a href="@login">Login</a> to post new content in forum.', array('@login' => url('user/login', array('query' => drupal_get_destination())))), 'html' => TRUE);
}
}
These messages should read:
You are not allowed to post new content in the forum.
and
Login to post new content in the forum.
Comments
Comment #1
jhedstromAnd the patch.
Comment #2
mikey_p commentedLooks good.
Comment #3
webchickCommitted to HEAD, thanks. :)
I'll move down to 6.x as well in case Gábor thinks this is worth breaking strings to fix there. Applies to 6.x with offset.
Comment #4
webchickAlso, I'm pretty sure "Grammar" is the best tag in the entire universe.
Comment #5
gábor hojtsyWell, committed to Drupal 6, thanks.