security update core+modules
This commit is contained in:
@@ -12,13 +12,27 @@ class context_reaction_debug extends context_reaction {
|
||||
return array('debug' => 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Settings form for variables.
|
||||
*/
|
||||
function settings_form() {
|
||||
$form = array();
|
||||
$form['context_reaction_debug_enable_global'] = array(
|
||||
'#title' => t('Enable debug reaction on all contexts'),
|
||||
'#type' => 'checkbox',
|
||||
'#default_value' => variable_get('context_reaction_debug_enable_global', FALSE),
|
||||
'#description' => t('Enable the debug reaction on all contexts.')
|
||||
);
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output a list of active contexts.
|
||||
*/
|
||||
function execute() {
|
||||
$contexts = context_active_contexts();
|
||||
foreach ($contexts as $context) {
|
||||
if (!empty($context->reactions['debug'])) {
|
||||
if (!empty($context->reactions['debug']) || variable_get('context_reaction_debug_enable_global', FALSE)) {
|
||||
if (user_access('administer site configuration') && module_exists('context_ui')) {
|
||||
$name = l($context->name, "admin/structure/context/list/{$context->name}", array('query' => array('destination' => $_GET['q'])));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user