Skip to main content
11 events
when toggle format what by license comment
Oct 9, 2012 at 6:52 vote accept Timofey Drozhzhin
Oct 4, 2012 at 8:41 history edited Timofey Drozhzhin CC BY-SA 3.0
corrected the question
Oct 4, 2012 at 2:50 comment added Timofey Drozhzhin Thanks for the help, guys! I accidentally commented out a line in menu.inc.
Oct 4, 2012 at 2:49 answer added Timofey Drozhzhin timeline score: 0
Oct 3, 2012 at 23:10 comment added junedkazi You should read about wildcard in menu system. api.drupal.org/api/drupal/modules!system!system.api.php/… . So in case of node/%/edit the % can be replaced by an integer and that integer can be passed as argument to the page callback or access callback. You can also have wildcard autoloaders like node/%node/edit now in this case %node will pass that value to node_load function. Read the hook_menu function for more information. Also refer to drupal.org/node/102338 for more examples.
Oct 3, 2012 at 20:50 comment added AKS menu router is an entry to register a particular path. node module registers node/%/edit, node/%/revisions, node/%, etc paths so it can use arguments in place of "%" sign. By default, when you see a menu, you should not see the "%" sign. Instead, these paths should be actual paths with value replaced.
Oct 3, 2012 at 20:43 history edited Timofey Drozhzhin CC BY-SA 3.0
theming code
Oct 3, 2012 at 20:41 comment added Timofey Drozhzhin Where does '%' get populated?
Oct 3, 2012 at 20:36 comment added Timofey Drozhzhin It shows that the page could not be found. I have no clue what menu router items are.
Oct 3, 2012 at 20:28 comment added AKS and what happens when you click on node/%/edit ? These are menu router items which i believe you already know.
Oct 3, 2012 at 20:22 history asked Timofey Drozhzhin CC BY-SA 3.0