I have a value in page.tpl.php that I would like to set in page callbacks, independently from the main content.
In page.tpl.php:
<?php print $placeholder ?>
<?php print render($page['content']); ?>
What I would like to do in the page callback:
function my_module_page_callback_foo() {
$placeholder = 'foo';
return 'Page Content';
}
Obviously, that isn't going to get me very far.
I'm hesitant to use hook_preprocess_page because then I'll have unnecessary conditional logic to determine what the menu item is (won't I?). Is there another, 'drupal way' of doing this?
I'm coming from a more 'Zend-y' world where I have access to my view and my layout variables from the controller.