Commit 4da8bca6 authored by bgm's avatar bgm

Issue #630000 : clarify the formAPI warning.

parent f74a90bd
......@@ -1743,7 +1743,7 @@ function boost_admin_button_router($number, $first, $form, &$form_state) {
if (strpos($value, (string)$number) != 1) {
$correct = substr($value, 1, 1);
if ($first) {
watchdog('boost', t('FormAPI Bug Encountered; trying to work around the bug. Given: %given Wanted: %wanted. Are you running an old version of Drupal core? For more information, see: http://drupal.org/node/630000.', array('%given' => $number, '%wanted' => $correct)));
watchdog('boost', t('FormAPI Bug Encountered; trying to work around the bug. Given: %given Wanted: %wanted. Are you running an old version of Drupal core? For more information, see: http://drupal.org/node/630000. Please describe which button was clicked and the complete error message.', array('%given' => $number, '%wanted' => $correct)));
switch ($correct) {
case 0:
boost_clear_cache_submit($form, $form_state, FALSE);
......@@ -1763,7 +1763,7 @@ function boost_admin_button_router($number, $first, $form, &$form_state) {
}
}
else {
drupal_set_message(t('FormAPI Bug Encountered; try again. Given: %given Wanted: %wanted.', array('%given' => $number, '%wanted' => $correct)), 'error');
drupal_set_message(t('FormAPI Bug Encountered; try again. Given: %given Wanted: %wanted. Are you running an old version of Drupal core? For more information, see: http://drupal.org/node/630000. Please describe which button was clicked and the complete error message.', array('%given' => $number, '%wanted' => $correct)), 'error');
}
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment