delta.module in Delta 7.2
Same filename and directory in other branches
Provide contextual theme settings via context module
File
delta.moduleView source
<?php
/**
* @file Provide contextual theme settings via context module
*/
/**
* Implementation of hook_context_plugins().
*
* This is a ctools plugins hook.
*/
function delta_context_plugins() {
$plugins = array();
$plugins['context_reaction_delta'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'delta') . '/plugins',
'file' => 'context_reaction_delta.inc',
'class' => 'context_reaction_delta',
'parent' => 'context_reaction',
),
);
return $plugins;
}
/**
* Implementation of hook_context_registry().
*/
function delta_context_registry() {
$registry = array();
$registry['reactions']['delta'] = array(
'title' => t('Delta'),
'description' => t('Apply contextual theme settings via the Delta module.'),
'plugin' => 'context_reaction_delta',
);
return $registry;
}
/**
* Implementation of hook_context_page_reaction().
*/
function delta_context_page_reaction() {
}
/**
* Implementation of hook_page_alter().
*/
function delta_preprocess_page(&$vars) {
if ($plugin = context_get_plugin('reaction', 'delta')) {
$plugin
->execute($vars);
}
}
Functions
Name | Description |
---|---|
delta_context_page_reaction | Implementation of hook_context_page_reaction(). |
delta_context_plugins | Implementation of hook_context_plugins(). |
delta_context_registry | Implementation of hook_context_registry(). |
delta_preprocess_page | Implementation of hook_page_alter(). |