security update core+modules

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-26 18:38:56 +02:00
parent 2f45ea820a
commit 7c96373038
1022 changed files with 30319 additions and 11259 deletions

View File

@@ -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'])));
}