| 1 |
<?php |
<?php |
| 2 |
// $Id: uts_path.module,v 1.15 2008/12/30 07:24:43 boombatower Exp $ |
// $Id: uts_path.module,v 1.16 2009/01/15 06:54:28 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. |
| 176 |
case t('Stop'): |
case t('Stop'): |
| 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. |
// Redirect to task page and display instructions. |
| 180 |
|
drupal_set_message(t('Please confirm that the ideal path is correct and save the task.')); |
| 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'): |