- Patch #319723 by aditya_kristanto, cha0s: confirm_form() needs to be polite with ['#attributes'].

merge-requests/26/head
Dries Buytaert 2010-03-28 11:54:27 +00:00
parent d5a525c591
commit ee1795e42d
1 changed files with 1 additions and 1 deletions

View File

@ -2688,7 +2688,7 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
drupal_set_title($question, PASS_THROUGH); drupal_set_title($question, PASS_THROUGH);
$form['#attributes'] = array('class' => array('confirmation')); $form['#attributes']['class'][] = 'confirmation';
$form['description'] = array('#markup' => $description); $form['description'] = array('#markup' => $description);
$form[$name] = array('#type' => 'hidden', '#value' => 1); $form[$name] = array('#type' => 'hidden', '#value' => 1);