Commit f74a90bd authored by bgm's avatar bgm

Issue #630000 : transform the FormAPI warning into a watchdog message instead...

Issue #630000 : transform the FormAPI warning into a watchdog message instead of drupal_set_message.
parent bfed6227
......@@ -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) {
drupal_set_message(t('FormAPI Bug Encountered; trying to work around the bug. Given: %given Wanted: %wanted.', array('%given' => $number, '%wanted' => $correct)), 'warning');
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)));
switch ($correct) {
case 0:
boost_clear_cache_submit($form, $form_state, 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