Projet

Général

Profil

Révision 7e72b748

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/includes/ajax.inc
1 1
<?php
2 2

  
3
// Set this so we can tell that the file has been included at some point.
3
/**
4
 * @file
5
 * Set this so we can tell that the file has been included at some point.
6
 */
7

  
4 8
define('CTOOLS_AJAX_INCLUDED', 1);
5 9

  
6 10
/**
......
85 89
 * @param $name
86 90
 *   The name or key: of the data attached to this selector.
87 91
 * @param $value
88
 *  The value of the data.
92
 *   The value of the data.
89 93
 */
90 94
function ctools_ajax_command_attr($selector, $name, $value) {
91 95
  ctools_add_js('ajax-responder');
92 96
  return array(
93
     'command' => 'attr',
94
     'selector' => $selector,
95
     'name' => $name,
96
     'value' => $value,
97
   );
98
 }
97
    'command' => 'attr',
98
    'selector' => $selector,
99
    'name' => $name,
100
    'value' => $value,
101
  );
102
}
99 103

  
100 104
/**
101 105
 * Force a client-side redirect.
......
154 158
  print ajax_render($commands);
155 159
  exit;
156 160
}
157

  

Formats disponibles : Unified diff