function context_ui_menu_contextual_links_alter in Context 7.3
Implementation of hook_menu_contextual_links_alter().
we we have the dialog enabled lets add a link to all contextual links to activate it.
File
- context_ui/
context_ui.module, line 368
Code
function context_ui_menu_contextual_links_alter(&$links, $router_item, $root_path) {
if (context_ui_dialog_is_enabled() && !context_isset('context_ui', 'context_ui_editor_present') && user_access('administer contexts')) {
$links['layout'] = array(
'href' => 'context-ui/activate',
'title' => t('Configure layout'),
'localized_options' => array(
'query' => array(
'destination' => $_GET['q'],
),
'options' => array(
'html' => FALSE,
'attributes' => array(),
),
),
);
}
}