You are here

function block_refresh_help in Block Refresh 7

Same name and namespace in other branches
  1. 6 block_refresh.module \block_refresh_help()
  2. 7.2 block_refresh.module \block_refresh_help()

Implements hook_help(). DRUPAL 7 STATUS: WORKING!

File

./block_refresh.module, line 45

Code

function block_refresh_help($path, $arg) {
  switch ($path) {
    case 'admin/help#block_refresh':
      $block_refresh_help = '<div class="form-item">';
      $block_refresh_help .= t("Ensure that you have !configured for user roles. Adding a permission to %access will allow a block, when configured, to be refreshed automatically and/or manually.", array(
        '%access' => BLOCK_REFRESH_ACCESS_CONTENT_PERMISSION,
        '!configured' => l(t('configured permissions'), 'admin/user/access', array(), NULL, 'module-block_refresh'),
      ));
      $block_refresh_help .= '</div><div class="form-item">';
      $block_refresh_help .= t("You will also need to set the appropriate settings for each block that you wish to automatically and/or manually refresh by clicking on the appropriate %configure link(s) on the !admin.", array(
        '%configure' => t('configure'),
        '!admin' => l(t('blocks administration page'), 'admin/build/block'),
      ));
      $block_refresh_help .= '</div>';
      return $block_refresh_help;
  }
}