You are here

function javascript_libraries_help in JavaScript Libraries Manager 7

Implements hook_help()

File

./javascript_libraries.module, line 72
Toggle the inclusion of Drupal system libraries. Upload and reference custom libraries as well.

Code

function javascript_libraries_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#javascript_libraries':
      $output .= '<p>' . t('You can use built-in JavaScript libraries that are registered by existing modules, or add custom Javascript libraries as uploaded files or external URLs.') . '</p>';
      $output .= '<p>' . t('In addition, you can load a library in every page load. Deselecting a library does not prevent it from loading when required by the system. Some libraries, such as jQuery, are included in every page load.') . '</p>';
      return $output;
    case 'admin/config/system/javascript-libraries':
      $output .= '<p>' . t('To include libraries in every page load, select them from the list below. The jQuery and jQuery once libraries are included by default.') . '</p>';
      return $output;
    case 'admin/config/system/javascript-libraries/custom':
      $output .= '<p>' . t('To load the JavaScript library on every page load, move it to the head or footer region. Not applicable to administrative pages.') . '</p>';
      return $output;
    case 'admin/config/system/javascript-libraries/custom/add':
      $output .= '<p>' . t('Use this page to add a JavaScript library or custom script to your site.') . '</p>';
      $output .= '<p>' . t('Adding JavaScript with malicious content can compromise your site, make it difficult to use, or degrade site performance. Only upload or use external files that have been verified.') . '</p>';
      return $output;
    case 'admin/config/system/javascript-libraries/custom/%/edit':
      $output .= '<p>' . t('Use this page to manage a JavaScript library or custom script in your site.') . '</p>';
      $output .= '<p>' . t('Adding JavaScript with malicious content can compromise your site, make it difficult to use, or degrade site performance. Only upload or use external files that have been verified.') . '</p>';
      return $output;
  }
}