function simple_node_importer_help in Simple Node Importer 8
Same name and namespace in other branches
- 7 simple_node_importer.module \simple_node_importer_help()
Implements hook_help().
Displays help and module information.
File
- ./
simple_node_importer.module, line 26 - Simple node importer module file.
Code
function simple_node_importer_help($path, $arg) {
$base_url = \Drupal::request()
->getSchemeAndHttpHost();
$drupalOrgPath = Url::fromUri('https://www.drupal.org/sandbox/sourdrup/2828039');
$modulePageUriLink = $base_url . '/admin/modules';
$output = '';
switch ($path) {
case 'help.page.simple_node_importer':
// code...
$output .= '<h3>' . t('ABOUT') . '</h3>';
$output .= t('<p>Simple Node Importer is a module which allows end users to import entities(node, users, taxonomy terms) using CSV files. It provides a Flexible Mapping UI to map CSV columns to it\'s corresponding entity field. For more information, see the online handbook entry for <a href="@simplenodeimporter">Simple Node Importer</a> module.</p>', [
'@simplenodeimporter' => $drupalOrgPath
->getUri(),
]);
$output .= '<h3>' . t('USES') . '</h3>';
$output .= '<dl>';
$output .= '<dt><strong>' . t('Enabling module') . '</strong></dt>';
$output .= t('<dd>This module get install in the same manner as other module does. You need to download it and save it into "/modules" directory and enable it from the <a href="@modulePageUriLink">Module</a> Page</dd>', [
'@modulePageUriLink' => $modulePageUriLink,
]);
$output .= '<dt><strong>' . t('Working with Simple Node Importer') . '</strong></dt>';
$output .= '<dd>' . t('Working with Simple Node Imprter is very easy and it will guide yu on every step.') . '</dd>';
$output .= '<dt><strong>' . t('Resolution Center') . '</strong></dt>';
$output .= '<dd>' . t('In Resolution Center, end user will be able to resolve and fix the bugs right away.') . '</dd>';
}
return render($output);
}