You are here

function featured_content_help_text in Featured Content 7.2

Same name and namespace in other branches
  1. 6.2 featured_content.pages.inc \featured_content_help_text()
  2. 6 featured_content.pages.inc \featured_content_help_text()
  3. 7 featured_content.pages.inc \featured_content_help_text()

Implements hook_help_text.

1 call to featured_content_help_text()
featured_content_help in ./featured_content.module
Implements hook_help().

File

./featured_content.pages.inc, line 11
Provides infrequently used pages for Featured Content.

Code

function featured_content_help_text($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/structure/block':
      $output = '<p>' . t('Click <a href="@url">add Featured Content Block</a> to create a customizable Featured Content Block. You will be able to configure your Featured Content Block before adding it to a region.', array(
        '@url' => url('admin/structure/block/add-featured-content-block'),
      )) . '</p>';
      if (module_exists('help')) {
        $output .= theme('more_help_link', array(
          'url' => url('admin/help/featured_content'),
        ));
      }
      break;
    case 'admin/structure/block/manage/%/%':
    case 'admin/structure/block/add-featured-content-block':
      if (module_exists('help')) {
        $output = '<p>' . t('To learn more about configuring Featured Content blocks, see <a href="@url">Featured Content Block’s detailed help</a>.', array(
          '@url' => url('admin/help/featured_content'),
        )) . '</p>';
      }
      break;
    case 'admin/help#featured_content':
    case 'admin/help/featured_content':
      $output = '<h3>' . t('Adding Featured Content Blocks') . '</h3>' . '<p>' . t('To add new Featured Content blocks, use the "Add Featured Content block" link on the <a href="@url">administer blocks page</a>. You will be able to configure your Featured Content block before adding it to a region.', array(
        '@url' => url('admin/structure/block'),
      )) . '</p>' . '<h3>' . t('Configuring Featured Content blocks') . '</h3>' . '<p>' . t('When adding or configuring a Featured Content block, several configuration options are available:') . '</p>' . '<dl>' . '<dt><strong>' . t('Block title') . '</strong></dt>' . '</dl>' . '<h3>' . t('Styling Featured Content Blocks') . '</h3>' . '<p>' . t('Themers should look at the classes added to the %div.', array(
        '%div' => '<div>',
      )) . '</p>' . '<p>' . t('In addition, the block is generated using the %template_default template.', array(
        '%template_default' => 'featured_content-block.tpl.php',
      )) . '</p>';
      break;
  }
  return $output;
}