function sweaver_page_alter in Sweaver 7
Implements hook_page_alter().
File
- ./
sweaver.module, line 446 - Sweaver functions.
Code
function sweaver_page_alter(&$page) {
// We return the complete form in the page_bottom.
if (sweaver_show_editor()) {
$content = drupal_get_form('sweaver_frontend');
$content['#suffix'] = '<div id="sweaver-messages"><div class="close">x</div><div class="message"></div></div>';
$page['page_bottom']['sweaver'] = array(
'#markup' => drupal_render($content),
);
}
}