You are here

function biblio_help in Bibliography Module 7.2

Same name and namespace in other branches
  1. 5 biblio.module \biblio_help()
  2. 6.2 biblio.module \biblio_help()
  3. 6 biblio.module \biblio_help()
  4. 7 biblio.module \biblio_help()

Implements hook_help().

Throughout Drupal, hook_help() is used to display help text at the top of pages. Some other parts of Drupal pages get explanatory text from these hooks as well. We use it here to provide a description of the module on the module administration page.

File

./biblio.module, line 407

Code

function biblio_help($path, $arg) {
  switch ($path) {
    case 'admin/help#biblio':
      return biblio_help_page();
    case 'admin/structure/biblio':
      return t("Here, you can manage the field and display settings for each of Biblio's publication types, similar to admin/structure/types. If a <small>(<span class=\"admin-disabled\">Missing Field Instances</span>)</small> label appears next to a publication type, don't panic. It simply means that the default Biblio field instances have not been created yet for that publication type. You can create the default field instances by navigating to the " . l('Biblio Add page', 'admin/content/biblio/add') . " and selecting the publication type for which to create field instances. (note that it may take a while for field instance creation to execute.)");
    case 'admin/modules#description':

      // This description is shown in the listing at admin/modules.
      return t('Manages a list of scholarly papers on your site');
    case 'node/add#biblio':

      // This description shows up when users click "create content."
      return t('This allows you to add a bibliographic entry to the database');
    case 'admin/content/biblio/add':
      return t('Create a new Biblio from scratch, or input a record from a file if you have a Biblio sub-module enabled. <i>Please note</i> that the first time you select a particular publication type, it will take a few seconds to build the field instances. (It won\'t happen more than once per publication type)');
  }
}