You are here

function node_gallery_api_help in Node Gallery 7

Implements hook_help().

File

./node_gallery_api.module, line 1215
Node Gallery module.

Code

function node_gallery_api_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'node/%/images':
      if (node_gallery_api_user_access('administer')) {
        return '<p>' . t('To configure what is displayed on this form, review the "Manage Items Fields" fieldset under <a href="!admin">Node Gallery administration</a>.', array(
          '!admin' => url('admin/config/content/node_gallery'),
        )) . '</p>';
      }
      break;
    case 'node/%/upload':
      if (module_exists('plupload')) {
        return '<p>' . t('To edit image data after uploading please visit the <a href="!manage">Manage Items</a> tab.', array(
          '!manage' => url('node/' . $arg[1] . '/items'),
        )) . '</p>';
      }
      elseif (node_gallery_api_user_access('administer')) {
        return '<p>' . t('To enable seamless bulk image uploading please install the <a href="!plupload">plupload integration</a> module.', array(
          '!plupload' => url('http://drupal.org/project/plupload'),
        )) . '</p>';
      }
      break;
    case 'node/%/sort':
      $output .= '<p>' . t('To change the weight of the gallery items, drag and drop them below.') . '  ';
      return $output;
      break;
    case 'admin/help#node_gallery':
      $output = '<p>' . t('Node Gallery integrates with the <a href="!advanced_help">advanced help</a> module for help.  Please install that, or visit the <a href="!ng">Node Gallery project page</a> and use the demo link to browse help online.', array(
        '!advanced_help' => url('http://drupal.org/project/advanced_help'),
        '!ng' => 'http://drupal.org/project/node_gallery',
      ));
      return $output;
  }
}