array(
      '#type' => 'regex',
      '#function' => '_confirm_submit$',
      '#value' => 'return [\'"]',
      '#warning' => 'in confirm_submit, use $form_state[\'redirect\'] instead of return (remember to change function prototype to use &$form_state) ',
    ),
    array(
      '#type' => 'regex',
      '#function' => '_confirm_submit$',
      '#value' => 'return [\'"]',
      '#warning' => 'in confirm_form, use $form_state[\'redirect\'] instead of return (remember to change function prototype to use &$form_state) ',
    ),

Comments

douggreen’s picture

Title: Why do we have two rules that do the same thing, but print slightly different messages? » Duplicate FAPI redirect rule?
stella’s picture

That's a bug, the second one should be removed.

stella’s picture

Status: Active » Fixed

Fixed and committed.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.