You are here

function homebox_help in Homebox 6

Same name and namespace in other branches
  1. 8 homebox.module \homebox_help()
  2. 6.3 homebox.module \homebox_help()
  3. 6.2 homebox.module \homebox_help()
  4. 7.3 homebox.module \homebox_help()
  5. 7.2 homebox.module \homebox_help()

Implementation of hook_help().

File

./homebox.module, line 100
Home box main file, takes care of global functions settings constants, etc.

Code

function homebox_help($path, $arg) {
  switch ($path) {
    case 'admin/build/homebox':
      $output = '<p>' . theme('advanced_help_topic', 'homebox', 'introduction') . '&nbsp;';
      $output .= t("Home box pages are listed below. Each page is accessible from one url on your site. You can create as many pages as you need, set its default layout (i.e. blocks that you want to be available per page, color options, etc.). Don't forget to visit the <a href='!permissions'>permissions page</a> to set access to home box pages for each role. <strong>NOTE:</strong> if a page doesn't contain any block, visiting it will fire a <em>Page not found (404)</em> error.", array(
        '!permissions' => url('admin/user/permissions', array(
          'fragment' => 'module-homebox',
        )),
      )) . '</p>';
      break;
    case 'admin/build/homebox/edit':
      $output = '<p>' . theme('advanced_help_topic', 'homebox', 'new-page') . '&nbsp;';
      $output .= t("You can rename or delete a Home box page.") . '</p>';
      break;
    case 'admin/build/homebox/layout/%':
      $output = '<p>' . theme('advanced_help_topic', 'homebox', 'default-layout') . '&nbsp;';
      $output .= t("This page behave the same way as Drupal block administration page. Drag blocks to whatever column you want to enable it for your users. Note that you can change the number of columns in the <a href='!settings_url'>settings page</a>", array(
        '!settings_url' => url('admin/build/homebox/settings/' . arg(4)),
      )) . '.</p>';
      break;
    case 'admin/build/homebox/settings/%':
      $output = '<p>' . theme('advanced_help_topic', 'homebox', 'settings') . '&nbsp;';
      $output .= t('Home box configuration page.');
      break;
  }
  return $output;
}