function form_test_clicked_button_validate

Form validation handler for the form_test_clicked_button() form.

Archivo

drupal-7.x/modules/simpletest/tests/form_test.module, line 1671
Helper module for the form API tests.

Código

function form_test_clicked_button_validate($form, &$form_state) {
  if (isset($form_state['triggering_element'])) {
    drupal_set_message(t('The clicked button is %name.', array('%name' => $form_state['triggering_element']['#name'])));
  }
  else {
    drupal_set_message('There is no clicked button.');
  }
}