Needs review
Project:
Trigger
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2009 at 17:31 UTC
Updated:
23 Jan 2012 at 05:40 UTC
Jump to comment: Most recent file
Trigger_menu() is a mess, because menu links to trigger pages are generated both manually and automatically. The patch removes trigger_access_check() and makes most of the logic inside trigger_menu() dynamic, except for the page to System's triggers, since System only exposes hook_cron() and the page it is on is called "Cron" and not "System".
Bottom line:
- Less code in total
- Less duplicate code (the manually declared menu links that were almost identical)
- Less menu links. The old code added some links even if the modules to which those links belonged weren't enabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 544318-node-optional.patch | 730 bytes | andypost |
| #8 | rework_trigger_menu_03.patch | 2.15 KB | xano |
| #6 | rework_trigger_menu_02.patch | 5.23 KB | xano |
| #4 | rework_trigger_menu_01.patch | 5.1 KB | xano |
| rework_trigger_menu_00.patch | 4.25 KB | xano |
Comments
Comment #1
xanoThis patch causes Node.module's human-readable name ('Node') to pop up in the menu. #544320: Rename Node to Content fixes this.
Comment #2
xanoComment #4
xanoComment #6
xanoComment #8
xanoHook_menu() was already rewritten during the major overhaul a short time ago. This patch removes some logic from trigger_assign() in favour of default local tasks and makes System the default module instead of Node in my attempt to make Node optional.
Comment #10
andypostXano, can you re-roll patch?
Marked as duplicate #310044: Trigger access callback not inherited
Comment #11
andypostActually this D8 material because node module is not going optional in D7
Another menu optimization #678606: Tab titles on Trigger page are not clear
Suppose this patch should be like bellow to not change current behaviur
Comment #12
andypostMuch easy with this patch :)
Comment #13
xjm#764558: Remove Trigger module from core has been committed, so moving this issue back to D7. Thanks folks!
Comment #14
webchickHm. Does this still make sense in D7?
Comment #15
xjmErr, nope. :) Oops. Don't think this is backportable. (Or... production-version-of-Drupal-portable?)
Comment #16
andypostStill valid for trigger module
Suppose all fixes should be moved not closed