$state->label(), '%title' => entity_label($entity_type, $entity), ) ); return confirm_form($args, $question, $return_uri, t('The workflow state will be changed.') ); } else { watchdog('workflow_revert', 'Invalid token', array(), WATCHDOG_ERROR); drupal_set_message(t('Invalid token. Your information has been recorded.'), 'error'); drupal_goto($return_uri); } } /** * Submit callback function. * * The function is magically called, due to its name