Révision 62f5c69e
Ajouté par Assos Assos il y a presque 9 ans
drupal7/sites/all/modules/colorbox/colorbox.api.php | ||
---|---|---|
27 | 27 |
$style = 'mystyle'; |
28 | 28 |
} |
29 | 29 |
} |
30 |
|
|
31 |
/** |
|
32 |
* Allows to override activation of Colobox for the current URL. |
|
33 |
* |
|
34 |
* @param $active |
|
35 |
* A boolean indicating whether colorbox should be active for the current |
|
36 |
* URL or not. |
|
37 |
*/ |
|
38 |
function hook_colorbox_active_alter(&$active) { |
|
39 |
$path = drupal_get_path_alias($_GET['q']); |
|
40 |
if (drupal_match_path($path, 'admin/config/colorbox_test')) { |
|
41 |
// Enable colorbox for this URL. |
|
42 |
$active = TRUE; |
|
43 |
} |
|
44 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules