Révision b0dc3a2e
Ajouté par Julien Enselme il y a plus de 7 ans
drupal7/includes/ajax.inc | ||
---|---|---|
394 | 394 |
if (!empty($form_state['triggering_element'])) { |
395 | 395 |
$callback = $form_state['triggering_element']['#ajax']['callback']; |
396 | 396 |
} |
397 |
if (!empty($callback) && function_exists($callback)) {
|
|
397 |
if (!empty($callback) && is_callable($callback)) {
|
|
398 | 398 |
$result = $callback($form, $form_state); |
399 | 399 |
|
400 | 400 |
if (!(is_array($result) && isset($result['#type']) && $result['#type'] == 'ajax')) { |
Formats disponibles : Unified diff
Update to Drupal 7.52