Member of
Drupal Mauritius
hook_footer was removed in Drupal 7. Here's the equivalent function and how to implement it :
<?php
/**
* Implements hook_page_alter().
*/
function example_page_alter(&$page) {
if (variable_get('dev_query', 0)) {
$page['page_bottom']['devel']= array(
'#type' => 'markup',
'#markup' => '<div style="clear:both;">' . devel_query_table() . '</div>',
);
}
}
?>
Comments
Arnaud
Fri, 03/16/2012 - 11:34
Permalink
Hehe!! nice one mate (as
Hehe!! nice one mate (as usual)! That helped me a lot!
Nick Shaw
Fri, 04/13/2012 - 14:18
Permalink
Use hook_page_buildhttp://api
Use hook_page_build
http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct...
to add new content the alter hook is to change/remove content
Add new comment