Projet

Général

Profil

Révision e4c061ad

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/includes/context-admin.inc
416 416
    ctools_cache_operation($mechanism, $cache_key, 'finalize', $object);
417 417

  
418 418
    // Very irritating way to update the form for our contexts.
419
    $arg_form_state = array(
419
    $arg_form_state = form_state_defaults() + array(
420 420
      'values' => array(),
421
      'programmed' => FALSE,
422 421
      'process_input' => FALSE,
423 422
      'complete form' => array(),
424 423
    );
425 424

  
425
    $rel_form_state = $arg_form_state;
426

  
426 427
    $arg_form = array(
427 428
      '#post' => array(),
428 429
      '#programmed' => FALSE,
......
469 470
    $output = array();
470 471
    if (!empty($available_relationships)) {
471 472
      ctools_context_add_item_table_buttons('relationship', $mechanism, $rel_form, $available_relationships);
472
      $rel_form = form_builder('dummy_form_id', $rel_form, $arg_form_state);
473
      $rel_form = form_builder('dummy_form_id', $rel_form, $rel_form_state);
473 474
      $output[] = ajax_command_replace('div#ctools-relationships-table div.buttons', drupal_render($rel_form));
474 475
    }
475 476

  
......
591 592
    $output = array();
592 593
    $output[] = ctools_modal_command_dismiss();
593 594

  
595
    $arg_form_state = form_state_defaults() + array(
596
      'values' => array(),
597
      'process_input' => FALSE,
598
      'complete form' => array(),
599
    );
600

  
594 601
    $arg_form = array(
595 602
      '#post' => array(),
603
      '#parents' => array(),
604
      '#array_parents' => array(),
596 605
      '#programmed' => FALSE,
597 606
      '#tree' => FALSE,
598 607
    );

Formats disponibles : Unified diff