You are here

function node_gallery_help in Node Gallery 6.3

Implements hook_help().

File

./node_gallery.module, line 63
Node gallery module file.

Code

function node_gallery_help($path, $arg) {
  switch ($path) {
    case 'node/%/images':
      if (node_gallery_user_access('administer')) {
        return '<p>' . t('To configure what is displayed on this form, review the "Manage Images Fields" fieldset under <a href="!admin">Node Gallery administration</a>.', array(
          '!admin' => url('admin/settings/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 Images</a> tab.', array(
          '!manage' => url('node/' . $arg[1] . '/images'),
        )) . '</p>';
      }
      elseif (node_gallery_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;
      break;
    case 'node/%/sort':
      $output .= '<p>' . t('To change the weight of the gallery images, drag and drop them below.') . '  ';
      if (module_exists('jquery_ui') && variable_get('node_gallery_jquery_ui_integration', TRUE)) {
        if (arg(3) == 'no_jquery') {
          $output .= t('If you wish to use the jquery drag & drop sorting, <a href="!jquery">click here</a>.', array(
            '!jquery' => url('node/' . $arg[1] . '/sort'),
          )) . '</p>';
        }
        else {
          $output .= t('If you wish to use the standard sort form which contains more data, <a href="!nojquery">click here</a>.', array(
            '!nojquery' => url('node/' . $arg[1] . '/sort/no_jquery'),
          )) . '</p>';
        }
      }
      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;
  }
}