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/templates/system/link.vars.php
10 10
 *
11 11
 * See theme function for list of available variables.
12 12
 *
13
 * @param array $variables
14
 *   An associative array of variables, passed by reference.
15
 *
13 16
 * @see bootstrap_process_link()
14 17
 * @see theme_link()
15 18
 *
16 19
 * @ingroup theme_preprocess
17 20
 */
18
function bootstrap_preprocess_link(&$variables) {
21
function bootstrap_preprocess_link(array &$variables) {
19 22
  // Fill in missing defaults not provided by drupal_common_theme().
20 23
  $variables['options'] += array(
21 24
    'attributes' => array(),
22 25
    'html' => FALSE,
23 26
  );
24
  
27

  
25 28
  // Core is so backwards on this theme hook. It does not provide a proper
26 29
  // preprocess function or attributes array. Merge any passed attributes
27 30
  // (which take precedence over passed option attributes) into the options
......
47 50
 *
48 51
 * See theme function for list of available variables.
49 52
 *
53
 * @param array $variables
54
 *   An associative array of variables, passed by reference.
55
 *
50 56
 * @see bootstrap_preprocess_link()
51 57
 * @see theme_link()
52 58
 *
53 59
 * @ingroup theme_process
54 60
 */
55
function bootstrap_process_link(&$variables) {
61
function bootstrap_process_link(array &$variables) {
56 62
  // Render #icon and trim it (so it doesn't add underlines in whitespace).
57 63
  if (!empty($variables['icon']) && ($icon = trim(render($variables['icon'])))) {
58 64
    // Sanitize text, if necessary.

Formats disponibles : Unified diff