function opigno_og_context_negotiation_info in Opigno 7
Implements hook_og_context_negotiation_info
File
- ./
opigno.module, line 122 - Contains all hook_implementations and module specific API.
Code
function opigno_og_context_negotiation_info() {
$providers = array();
$providers['opigno_tool'] = array(
'name' => t('Opigno tool urls'),
'description' => t("Determine context by checking node/%/tool-page."),
'callback' => 'opigno_og_context_handler',
'menu path' => array(
'node/%',
),
);
$providers['opigno_entity_reference'] = array(
'name' => t('Opigno entity reference urls'),
'description' => t("Determine context by checking entityreference/autocomplete/single/%/%/%."),
'callback' => 'opigno_og_context_handler',
'menu path' => array(
'entityreference/autocomplete/single/%/%/%',
),
);
return $providers;
}