Commit e2b4c169 authored by grisendo's avatar grisendo
Browse files

Changed ['q'] into current_path() in API demo file

parent 7b4ae861
......@@ -23,7 +23,7 @@ function hook_colorbox_settings_alter(&$settings, &$style) {
$settings['scalePhotos'] = FALSE;
// Use custom style plugin specifically for node/123.
if ($_GET['q'] == 'node/123') {
if (current_path() == '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