You are here

function image_resize_filter_help in Image Resize Filter 6

Same name and namespace in other branches
  1. 8 image_resize_filter.module \image_resize_filter_help()
  2. 7 image_resize_filter.module \image_resize_filter_help()

Implementation of hook_help().

File

./image_resize_filter.module, line 19
image_resize_filter.module

Code

function image_resize_filter_help($path, $arg) {
  switch ($path) {
    case 'admin/help#image_resize_filter':
      $instructions = array(
        t('Visit the <a href="!url">Input formats</a> configuration page. Click "configure" next to the text format you want to enable the image resize filter on.', array(
          '!url' => 'admin/settings/filters',
        )),
        t('Check the box for "Image resize filter" under the list of filters.'),
        t('<strong>Important</strong>: Click the "Rearranage" tab to check the order of the filters.') . '<p>' . t('If using the Image Resize Filter on the "Filtered HTML" text format, you <strong>must</strong> ensure A) that the &lt;img&gt; tag is in the list of allowed tags and B) The "Image resize filter" is run <strong>before</strong> the "HTML filter".') . '</p>' . '<p>' . t('If using the Image Resize Filter with BBCode or some other non-HTML filter, the "Image resize filter" must be run AFTER the BBCode filter.') . '</p>',
        t('Optional. Click "configure" next to the input format the image resize filter has been enabled on, then click the "Configure" tab to set additional configuration for the image resize filter.'),
      );
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The image resize filter module provides a <a href="!url">filter</a> that makes it easy to resize images, especially when combined with a WYSIWYG editor such as tinyMCE or FCKeditor. Users never have to worry about scaling image sizes again, just insert an image and set it\'s height and width properties in HTML and the image is resized on output. To use the image resize filter, follow these steps.', array(
        '!url' => url('admin/help/filter'),
      )) . '</p>';
      $output .= theme('item_list', $instructions, t('Installation and use'), 'ol');
      return $output;
  }
}