function lightbox2_help in Lightbox2 5
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_help()
- 5.2 lightbox2.module \lightbox2_help()
- 6 lightbox2.module \lightbox2_help()
- 7.2 lightbox2.module \lightbox2_help()
- 7 lightbox2.module \lightbox2_help()
Implementation of hook_help().
Displays the information for this module. Displays the help text for this module.
File
- ./
lightbox2.module, line 31
Code
function lightbox2_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Enables Lightbox V2 for Drupal');
case 'admin/help#lightbox2':
return t('<h3>Overview</h3>
<p align="justify">Lightbox JS V2 is a simple, unobtrusive script used to overlay images on the current page. It\'s a snap to setup and works on all modern browsers. The module comes with a Lightbox2 Lite option which does not use the Scriptaculous/Prototype libraries; it is therefore less likely to conflict with anything else.</p>
<p align="justify">Places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths. Keeps users on the same page. Clicking to view an image and then having to click the back button to return to your site is bad for continuity (and no fun!).</p>
<p align="justify"><h3>Usage</h3></p>
<p>Add rel="lightbox" attribute to any link tag to activate the lightbox. For example: </p>
<p><a href="image-1.jpg" rel="lightbox" title="my caption">image #1</a></p>
<p>Optional: Use the title attribute if you want to show a caption.</p>
<p>If you have a set of related images that you would like to group, follow
step one but additionally include a group name between square brackets in the
rel attribute. For example:</p><p><a href="images/image-1.jpg"
rel="lightbox[roadtrip]">image #1</a><br />
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image
#2</a><br />
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image
#3</a><br /></p>
<p>No limits to the number of image sets per page or how many images are allowed
in each set. Go nuts!</p>');
break;
}
}