function og_session_context_og_context_negotiation_info in OG Session Context 7
Implements hook_og_context.negotiation_info()
Adds a method to /admin/config/group/context to grab the og context value through a custom session variable.
File
- ./
og_session_context.module, line 19 - Provides hook implementations and functionality for og_session_context.
Code
function og_session_context_og_context_negotiation_info() {
$providers = array();
$providers['sessions'] = array(
'name' => t('Sessions'),
'description' => t("Determine context by checking session variable."),
'callback' => 'og_session_context_og_context_handler_sessions',
);
return $providers;
}