Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

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')) {

Also available in: Unified diff