summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-14 22:16:02 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-14 22:16:02 +0000
commit361c7c7ed89ed340e348ed73310819bda8b23ff0 (patch)
tree5d7caf53579d25ded3240a55e629d8cbdbf0b8f0
parent3bdc01fdfdcf71fe039752476d5eeb082f0ad056 (diff)
downloadbrdo-361c7c7ed89ed340e348ed73310819bda8b23ff0.tar.gz
brdo-361c7c7ed89ed340e348ed73310819bda8b23ff0.tar.bz2
#58034, make suggested menu items show up in breadcrumbs, results in less code. Patch by Zen
-rw-r--r--includes/menu.inc2
-rw-r--r--modules/contact.module3
-rw-r--r--modules/contact/contact.module3
3 files changed, 1 insertions, 7 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 8276dfd38..b160dc094 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -125,7 +125,7 @@ define('MENU_DYNAMIC_ITEM', MENU_VISIBLE_IN_TREE | MENU_VISIBLE_IN_BREADCRUMB);
* 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
diff --git a/modules/contact.module b/modules/contact.module
index c9ddcca14..8008034dd 100644
--- a/modules/contact.module
+++ b/modules/contact.module
@@ -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)));
}
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index c9ddcca14..8008034dd 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -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)));
}