Skip to main content
10 events
when toggle format what by license comment
Aug 31, 2012 at 8:59 vote accept Strae
Aug 28, 2012 at 15:17 comment added optimusprime619 have you checked the possibilities of enforcing such conditions in your module_preprocess_page() with &$variables like mentioned in below answer? In similar situations I've done such stuff in my theme_preprocess_page() with function calls to modules to determine decision making conditions, one bad experience with White screen of death when calling function of module which is disabled made me use function_exists and module_exists before calling a function to be on safer side, but it goes without saying that though my approach worked for me its muddy and not recommended.
Aug 28, 2012 at 15:01 history tweeted twitter.com/#!/StackDrupal/status/240464087715291136
Aug 28, 2012 at 13:21 history edited Strae CC BY-SA 3.0
added 850 characters in body
Aug 28, 2012 at 13:15 comment added Strae @optimusprime619 You understood right my question, but my question lack of details.. my bad, i update the question ;)
Aug 28, 2012 at 13:14 comment added Strae @PierreBuyle You're right, but the problem comes when i have to choose the template file according to what happen in the _mymodule_test_callback() function. For example, if a determinate node exist and has some attributes, i can choose 'foo' template, else, 'bar' template. If the node doesnt exist at all and the user have the 'cippalippa' role, then i have to choose the 'foobar' template.. and so on ;)
Aug 28, 2012 at 13:02 comment added Pierre Buyle Silly me, off course using page-<path>.tpl.php is the best answer when the custom page template is needed for a single page callback.
Aug 28, 2012 at 12:55 comment added optimusprime619 if my understanding of you query "to use a custom page template other than page.tpl.php for this specific menu callback" is right, you could use page-internal_path.tpl.php which in this case should be page-mymodule-test.tpl.php based on my understanding of Drupal 6 template suggestions, please let me know if i've misinterpreted the question.
Aug 28, 2012 at 12:52 answer added Pierre Buyle timeline score: 1
Aug 28, 2012 at 12:10 history asked Strae CC BY-SA 3.0