Projet

Général

Profil

Révision eefc2ac0

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/bootstrap/includes/registry.inc
1 1
<?php
2

  
2 3
/**
3 4
 * @file
4 5
 * List of functions used to alter the theme registry in Bootstrap based themes.
......
173 174
 * @see _theme_process_registry()
174 175
 * @see _theme_build_registry()
175 176
 */
176
function _bootstrap_process_theme_registry(&$registry, $themes) {
177
function _bootstrap_process_theme_registry(array &$registry, $themes) {
177 178
  // Convert to an array if needed.
178 179
  if (is_string($themes)) {
179 180
    $themes = array();
......
281 282
 *
282 283
 * @see https://www.drupal.org/node/2098551
283 284
 */
284
function _bootstrap_registry_sort_phase_functions(&$functions, $hook, $phase, $themes) {
285
function _bootstrap_registry_sort_phase_functions(array &$functions, $hook, $phase, array $themes) {
285 286
  // Immediately return if there is nothing to sort.
286 287
  if (count($functions) < 2) {
287 288
    return;
......
326 327
 * @param string|array $themes
327 328
 *   The name of the theme or list of theme names to process.
328 329
 *
329
 * @return array
330
 *   The functions found, suitable for returning from hook_theme;
331
 *
332 330
 * @see https://www.drupal.org/node/939462
333 331
 * @see drupal_find_theme_functions()
334 332
 */
335
function _bootstrap_process_theme_registry_suggestions(&$registry, $themes) {
333
function _bootstrap_process_theme_registry_suggestions(array &$registry, $themes) {
336 334
  // Convert to an array if needed.
337 335
  if (is_string($themes)) {
338 336
    $themes = array();
......
460 458
 * @see https://www.drupal.org/node/2339447
461 459
 */
462 460
if (!function_exists('drupal_group_functions_by_prefix')) {
461

  
463 462
  /**
464 463
   * Group all user functions by word before first underscore.
465 464
   *
......
478 477

  
479 478
    return $grouped_functions;
480 479
  }
480

  
481 481
}
482 482

  
483 483
/**

Formats disponibles : Unified diff