You are here

function hashtags_help in Hashtags 8

Same name and namespace in other branches
  1. 7.2 hashtags.module \hashtags_help()
  2. 7 hashtags.module \hashtags_help()

Implements hook_help().

File

./hashtags.module, line 13

Code

function hashtags_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.hashtags':
      $output = '';
      $output .= '<h3>' . t('Hashtags') . '</h3>';
      $path = drupal_get_path('module', 'hashtags');
      $output .= '<p>' . t('The Hashtags module allows to create hashtags taxonomy terms
                                for the content entities. Go to <a href=":config">Hashtags
                                configuration page</a> and click on <b>Activate Hashtags</b>
                                button for the corresponding content type. This will create
                                <em>Hashtags taxonomy term</em> field and hashtags will be
                                activated for the <em>Body</em> field of the content type.
                                Also you can activate hashtags for other Text fields. To do
                                this go to the <b>Manage fields</b> of the content type,
                                click on <b>edit</b> link of the Text field and check the
                                <em>Hashtags Activate</em> box. <p>Check the images below to
                                see the tips how to configure the module.</p><div>
                                <div><img style="width:100%;" src=":hashtags1" /></div>
                                <div><img style="width:100%;" src=":hashtags2" /></div>
                                <div><img style="width:100%;" src=":hashtags3" /></div>
                                <div><img style="width:100%;" src=":hashtags4" /></div>
                                <div><img style="width:100%;" src=":hashtags5" /></div>
                                </div>', array(
        ':config' => \Drupal::url('hashtags.manager_form'),
        ':hashtags1' => '/' . $path . '/images/hashtags1.png',
        ':hashtags2' => '/' . $path . '/images/hashtags2.png',
        ':hashtags3' => '/' . $path . '/images/hashtags3.png',
        ':hashtags4' => '/' . $path . '/images/hashtags4.png',
        ':hashtags5' => '/' . $path . '/images/hashtags5.png',
      )) . '</p>';
      return $output;
  }
}