function hook_fancybox_settings_alter in fancyBox 7.2
Modify fancyBox settings just before being rendered to Javascript.
Implement this hook for settings that do not appear on the module's interface, settings that are dependent on taxonomy, etc.
Parameters
&$options array: An associative array of fancyBox options.
&$helpers array: An associative array of fancyBox helpers and their options.
See also
http://fancyapps.com/fancybox/#docs
1 invocation of hook_fancybox_settings_alter()
- fancybox_init in ./
fancybox.module - Implements hook_init().
File
- ./
fancybox.api.php, line 44 - Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…
Code
function hook_fancybox_settings_alter(&$options, &$helpers) {
$options['tpl'] = array(
'closeBtn' => '<a title="Close this window" class="fancybox-item fancybox-close" href="javascript:;"></a>',
);
}