class supersized_context_disable_reaction in Supersized 7
Same name and namespace in other branches
- 8 supersized_context/supersized_context_disable_reaction.inc \supersized_context_disable_reaction
@file Reaction class of supersized.
To apply Supersized.
Hierarchy
- class \context_reaction
Expanded class hierarchy of supersized_context_disable_reaction
2 string references to 'supersized_context_disable_reaction'
- supersized_context_context_plugins in supersized_context/
supersized_context.module - Implements hook_context_plugins().
- supersized_context_context_registry in supersized_context/
supersized_context.module - Implements hook_context_registry().
File
- supersized_context/
supersized_context_disable_reaction.inc, line 9 - Reaction class of supersized.
View source
class supersized_context_disable_reaction extends context_reaction {
/**
* Construct option form.
*/
function options_form($context) {
$values = $this
->fetch_from_context($context);
$form['#tree'] = TRUE;
$form['disable_supersized'] = array(
'#type' => 'checkbox',
'#title' => t('Disable Supersized'),
'#default_value' => $values ? $values['disable_supersized'] : NULL,
'#description' => t('Check this checkbox if you would like to disable Supersized based on above condition.'),
);
return $form;
}
/**
* See if context contains redirect reaction.
*/
function execute() {
$contexts = context_active_contexts();
foreach ($contexts as $context) {
if (!empty($context->reactions[$this->plugin])) {
return TRUE;
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
context_reaction:: |
property | |||
context_reaction:: |
property | |||
context_reaction:: |
property | |||
context_reaction:: |
function | Retrieve options from the context provided. | 1 | |
context_reaction:: |
function | Retrieve active contexts that have values for this reaction. | ||
context_reaction:: |
function | Options form submit handler. | 3 | |
context_reaction:: |
function | Settings form. Provide variable settings for your reaction. | 2 | |
context_reaction:: |
function | Clone our references when we're being cloned. | ||
context_reaction:: |
function | Constructor. Do not override. | ||
supersized_context_disable_reaction:: |
function | See if context contains redirect reaction. | ||
supersized_context_disable_reaction:: |
function |
Construct option form. Overrides context_reaction:: |