function og_menu_help in Organic Groups Menu (OG Menu) 7.3
Same name and namespace in other branches
- 5 og_menu.module \og_menu_help()
- 7.2 og_menu.module \og_menu_help()
Implements hook_help().
File
- ./
og_menu.module, line 57 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_help($path, $arg) {
if ($path == 'admin/structure/menu/og_menu' && !variable_get('og_menu_hide_help', FALSE)) {
return '<p>' . t('Add new menus on the <a href="@menu">Menu administration page</a>.', array(
'@menu' => url('admin/structure/menu'),
)) . '</p>';
}
if ($path == 'group/%/%/admin/menus' && module_exists('block') && !variable_get('og_menu_hide_help', FALSE)) {
if (!variable_get('og_menu_show_blocks', FALSE)) {
return '<p>' . t('With the current setting, OG Menus will not be exposed as blocks on the blocks administration page. Use the OG Menu supplied menu blocks on the !blocks_page.', array(
'!blocks_page' => l(t('Blocks administration page'), 'admin/structure/block'),
)) . '</p>';
}
else {
return '<p>' . t('Each menu has a corresponding block that is managed on the !blocks_page.', array(
'!blocks_page' => l(t('Blocks administration page'), 'admin/structure/block'),
)) . '</p>';
}
}
}