Commit 361c7c7e authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#58034, make suggested menu items show up in breadcrumbs, results in less code. Patch by Zen

parent 3bdc01fd
......@@ -125,7 +125,7 @@
* Modules may "suggest" menu items that the administrator may enable. They act
* just as callbacks do until enabled, at which time they act like normal items.
*/
define('MENU_SUGGESTED_ITEM', MENU_MODIFIABLE_BY_ADMIN);
define('MENU_SUGGESTED_ITEM', MENU_MODIFIABLE_BY_ADMIN | MENU_VISIBLE_IN_BREADCRUMB);
/**
* Local tasks are rendered as tabs by default. Use this for menu items that
......
......@@ -408,9 +408,6 @@ function contact_mail_user_submit($form_id, $edit) {
function contact_mail_page() {
global $user;
$breadcrumb[] = array('path' => 'contact', 'title' => t('contact'));
menu_set_location($breadcrumb);
if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3))) {
$output = t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3)));
}
......
......@@ -408,9 +408,6 @@ function contact_mail_user_submit($form_id, $edit) {
function contact_mail_page() {
global $user;
$breadcrumb[] = array('path' => 'contact', 'title' => t('contact'));
menu_set_location($breadcrumb);
if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3))) {
$output = t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment