Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/simpletest/tests/form_test.module
918 918
  $form_state['rebuild'] = TRUE;
919 919
}
920 920

  
921
/**
922
 * A simple form for testing form caching.
923
 */
924
function form_test_cache_form($form, &$form_state) {
925
  $form['title'] = array(
926
    '#type' => 'textfield',
927
    '#title' => 'Title',
928
    '#required' => TRUE,
929
  );
930

  
931
  $form['submit'] = array(
932
    '#type' => 'submit',
933
    '#value' => 'Save',
934
  );
935

  
936
  return $form;
937
}
938

  
921 939
/**
922 940
 * A form for testing form labels and required marks.
923 941
 */

Formats disponibles : Unified diff