You are here

function og_menu_default_links_help in Organic Groups Menu (OG Menu) 7.3

Implements hook_help().

File

contrib/og_menu_default_links/og_menu_default_links.module, line 29
Implements default menu links for new OG groups.

Code

function og_menu_default_links_help($path, $arg) {
  if ($path == 'admin/config/group/og_menu/default-links') {
    $bundles = og_get_all_group_bundle();
    if (!empty($bundles)) {
      $help = t('Specify default links to be added to every new OG Menu. Enter the <strong>title</strong> followed by the <strong>path</strong> delimited by a pipe. Keep in mind these links will only be added to menus generated automaticly on group creation. Examples:<ul><li>Example Link|http://www.example.com</li><li>Link to the Group node|node/[node:nid]</li></li></ul>');
    }
    else {
      $help = t('There are no group type bundles yet.');
    }
    return $help;
  }
}