You are here

function node_import_help in Node import 5

Implementation of hook_help().

File

./node_import.module, line 12
This modules provides a wizard at "administer >> content >> import" to import a CSV file with nodes.

Code

function node_import_help($section) {
  switch ($section) {
    case 'admin/help#node_import':
      $output = '<p>' . t('The node import module enables importing of nodes of any type into your site using comma separated values format (CSV) or tab separated values format (TSV). One possible use is with contact manager to import lists of contacts. Users want to be able to import content from other systems into their site.') . '</p>';
      $output .= '<p>' . t('Node import accepts a CSV or TSV file as input. CSV or TSV files can be generated using spreadsheet programs. Your CSV or TSV file must contain field names in its first row. These field names can be anything. Modules, such as contact_manager, will add additional import types.', array(
        '%external-http-drupal-org-node-24614' => 'http://drupal.org/node/24614',
      )) . '</p>';
      $output .= t('<p>You can</p>
<ul>
<li>read about the function that reads CSV files called <a href="@external-http-us3-php-net-fgetcvs" title="fgetcsv programmer function page">fgetcsv</a>.</li>
<li>import nodes at <a href="@admin-node-node_import">administer &gt;&gt; content &gt;&gt; import</a>.</li>
<li>administer node permissions at <a href="@admin-access-permission">administer &gt;&gt; access &gt;&gt; permissions &gt;&gt; node import</a>.</li>
</ul>', array(
        '@external-http-us3-php-net-fgetcvs' => 'http://us3.php.net/fgetcsv',
        '@admin-node-node_import' => url('admin/content/node_import'),
        '@admin-access-permission' => url('admin/access/permission'),
      ));
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@node_import">Node import page</a>.', array(
        '@node_import' => 'http://www.drupal.org/handbook/modules/node_import/',
      )) . '</p>';
      return $output;
  }
}