function modalframe_page_alter in Modal Frame API 7
Implements hook_page_alter().
Remove the 'toolbar' when in the child frame.
File
- ./
modalframe.module, line 131 - Provides an API to render an iframe within a modal dialog based on the jQuery UI Dialog plugin.
Code
function modalframe_page_alter(&$page) {
if (!empty($GLOBALS['modalframe_page_template']) && isset($page['page_top']['toolbar'])) {
unset($page['page_top']['toolbar']);
}
}