| 1 |
<?php |
<?php |
| 2 |
// $Id: uts_path.module,v 1.17 2009/05/26 16:10:21 boombatower Exp $ |
// $Id: uts_path.module,v 1.18 2009/05/30 02:36:10 boombatower Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Collect the user path taken to complete a task and compare to defined ideal path. |
* Collect the user path taken to complete a task and compare to defined ideal path. |
| 177 |
variable_set('uts_path_ideal_recorder', UTS_PATH_RECORDER_CLOSED); |
variable_set('uts_path_ideal_recorder', UTS_PATH_RECORDER_CLOSED); |
| 178 |
|
|
| 179 |
// Redirect to task page and display instructions. |
// Redirect to task page and display instructions. |
| 180 |
drupal_set_message(t('Please confirm that the ideal path is correct and save the task.')); |
drupal_set_message(t('Please confirm that the ideal path is correct as it is automatically saved.')); |
| 181 |
$form_state['redirect'] = 'node/' . variable_get('uts_path_ideal_recorder_task_nid', 0) . '/edit'; |
$form_state['redirect'] = 'node/' . variable_get('uts_path_ideal_recorder_task_nid', 0) . '/edit'; |
| 182 |
break; |
break; |
| 183 |
case t('Clear'): |
case t('Clear'): |