function asset_preprocess_page in Asset 7
Implements hook_preprocess_page().
Trying to hide unnecessary elements
File
- ./
asset.module, line 662 - Asset module.
Code
function asset_preprocess_page(&$variables) {
if (asset_is_popup()) {
module_invoke_all('suppress');
foreach (element_children($variables['page']) as $key) {
if ($key != 'content') {
unset($variables['page'][$key]);
}
}
if (isset($_GET['pure']) && $_GET['pure']) {
$variables['theme_hook_suggestions'][] = 'asset_pure';
}
else {
$variables['theme_hook_suggestions'][] = 'asset_form_page';
}
unset($variables['title_prefix']);
unset($variables['title_suffix']);
unset($variables['secondary_menu']);
$variables['tabs'] = array(
'#secondary' => '',
);
}
}