Commit 16a93276 authored by frjo's avatar frjo
Browse files

Adding colorbox.api.php file.

parent c194acd1
<?php
// $Id$
/**
* @file
* API documentation for the colorbox module.
*/
/**
* Allows to override Colorbox settings and style.
*
* @param $settings
* An associative array of Colorbox settings. See the
* @link http://colorpowered.com/colorbox/ Colorbox documentation @endlink
* for the full list of supported parameters.
* @param $style
* The name of the active style plugin.
*/
function hook_colorbox_settings_alter(&$settings, &$style) {
// Disable automatic downscaling of images to maxWidth/maxHeight size.
$settings['scalePhotos'] = FALSE;
// Use custom style plugin specifically for node/123.
if ($_GET['q'] == 'node/123') {
$style = 'mystyle';
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment