Révision 219d19c4
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/ctools/ctools.module | ||
---|---|---|
479 | 479 |
if (!module_exists('uuid')) { |
480 | 480 |
ctools_include('uuid'); |
481 | 481 |
|
482 |
$callback = drupal_static(__FUNCTION__); |
|
482 |
$callback = &drupal_static(__FUNCTION__);
|
|
483 | 483 |
|
484 | 484 |
if (empty($callback)) { |
485 | 485 |
if (function_exists('uuid_create') && !function_exists('uuid_make')) { |
... | ... | |
903 | 903 |
*/ |
904 | 904 |
|
905 | 905 |
function ctools_access_menu($access) { |
906 |
$func_args = func_get_args(); |
|
906 | 907 |
// Short circuit everything if there are no access tests. |
907 | 908 |
if (empty($access['plugins'])) { |
908 | 909 |
return TRUE; |
909 | 910 |
} |
910 | 911 |
|
911 | 912 |
$contexts = array(); |
912 |
foreach (func_get_args() as $arg) {
|
|
913 |
foreach ($func_args as $arg) {
|
|
913 | 914 |
if (is_object($arg) && get_class($arg) == 'ctools_context') { |
914 | 915 |
$contexts[$arg->id] = $arg; |
915 | 916 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules