-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation says that 0x0010 is what makes MENU_CALLBACK different from MENU_SUGGESTED_ITEM when it is not true #6518
Comments
I'm not entirely able to confirm that this makes sense, but I kinda trust that it does. If so, easy and simple change. I have this a |
@stpaultim I think this is an internal note that reminds that 0x0010 in |
@stpaultim to be fair, the original sentence wasn't very clear either. This might be a good time to improve that also :) How about something like:
We should probanly also look at the issue where MENU_VISIBLE_IN_BREADCRUMB was added. We might want to add something about that to explain why it's MENU_VISIBLE_IN_BREADCRUMB now when in the past it was MENU_CALLBACK. |
Drupal 5.x has the following definitions. define('MENU_VISIBLE_IN_BREADCRUMB', 0x0004);
define('MENU_MODIFIABLE_BY_ADMIN', 0x0010);
define('MENU_CALLBACK', MENU_VISIBLE_IN_BREADCRUMB);
define('MENU_SUGGESTED_ITEM', MENU_MODIFIABLE_BY_ADMIN | MENU_VISIBLE_IN_BREADCRUMB); Drupal 6.x has these definitions. define('MENU_VISIBLE_IN_BREADCRUMB', 0x0004);
define('MENU_CALLBACK', MENU_VISIBLE_IN_BREADCRUMB);
define('MENU_SUGGESTED_ITEM', MENU_VISIBLE_IN_BREADCRUMB | 0x0010); Drupal 7.x has these definitions. define('MENU_VISIBLE_IN_BREADCRUMB', 0x0004);
define('MENU_CALLBACK', 0x0000);
define('MENU_SUGGESTED_ITEM', MENU_VISIBLE_IN_BREADCRUMB | 0x0010); The comment that is currently used in Backdrop (which is the following one) was true for Drupal 5 and Drupal 6, but not Drupal 7, for which the value of
Using
|
I changed the note as suggested. |
LGTM 👍🏼 ...let's try to knock this one out of the way 🙂 |
…CK different from MENU_SUGGESTED_ITEM when it is not true. By @kiamlaluno, @klonos, @jenlampton, and @stpaultim.
…CK different from MENU_SUGGESTED_ITEM when it is not true. By @kiamlaluno, @klonos, @jenlampton, and @stpaultim.
Thank you @kiamlaluno for the attention to detail on fixes in our documentation. I really appreciate the large number of small fixes like this that you have submitted. I merged backdrop/backdrop#4736 into 1.x and 1.28.x. Thank you @kiamlaluno, @klonos, @jenlampton, and @stpaultim! |
The documentation for
MENU_SUGGESTED_ITEM
contains the following sentence.The highlighted part is not true:
MENU_SUGGESTED_ITEM
isMENU_VISIBLE_IN_BREADCRUMB
| 0x0010
(0x0014
) whileMENU_CALLBACK
is0x0000
; even removing0x0010
, those constants would have two different values (0x0004
andOx0000
).Truly,
0x0010
is what makesMENU_SUGGESTED_ITEM
different fromMENU_VISIBLE_IN_BREADCRUMB
. That sentence should be the following one.The text was updated successfully, but these errors were encountered: