Révision 3753f249
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/ctools/includes/plugins.inc | ||
---|---|---|
343 | 343 |
* name and each inner array keyed on plugin type name. |
344 | 344 |
*/ |
345 | 345 |
function ctools_plugin_get_plugin_type_info($flush = FALSE) { |
346 |
$info_loaded = &drupal_static('ctools_plugin_type_info_loaded', FALSE); |
|
347 |
$all_type_info = &drupal_static('ctools_plugin_type_info', array()); |
|
346 |
static $drupal_static_fast; |
|
347 |
if (!isset($drupal_static_fast)) { |
|
348 |
$drupal_static_fast['info_loaded'] = &drupal_static('ctools_plugin_type_info_loaded', FALSE); |
|
349 |
$drupal_static_fast['all_type_info'] = &drupal_static('ctools_plugin_type_info', array()); |
|
350 |
} |
|
351 |
$info_loaded = &$drupal_static_fast['info_loaded']; |
|
352 |
$all_type_info = &$drupal_static_fast['all_type_info']; |
|
348 | 353 |
|
349 | 354 |
// Only trigger info loading once. |
350 | 355 |
if ($info_loaded && !$flush) { |
Formats disponibles : Unified diff
Weekly update of contrib modules