function block_edit_preprocess_page in Block edit 6
Override or insert variables into the page templates.
Parameters
$vars: An array of variables to pass to the theme template.
$hook: The name of the template being rendered ("page" in this case.)
File
- ./
block_edit.module, line 226 - Adds edit links to blocks and nodes to make administration more intuitive.
Code
function block_edit_preprocess_page(&$vars, $hook) {
$block_edit_tabs = variable_get('block_edit_tabs', node_get_types('names'));
if (isset($vars['node']->type) && isset($block_edit_tabs[$vars['node']->type]) && $block_edit_tabs[$vars['node']->type] === 0 && arg(2) == '') {
$vars['tabs'] = '';
}
}