function hosting_task_update_status_form in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_update_status_form()
- 7.3 task/hosting_task.module \hosting_task_update_status_form()
Adds button to update the status of task nodes stuck in the 'processing' state.
1 string reference to 'hosting_task_update_status_form'
- hosting_task_view in task/
hosting_task.module - Implements hook_view().
File
- task/
hosting_task.module, line 1144 - Web server node type is defined here.
Code
function hosting_task_update_status_form($form, &$form_state, $vid) {
$form['#prefix'] = '<div class="hosting-task-retry">';
$form['task'] = array(
'#type' => 'hidden',
'#default_value' => $vid,
);
$form['update-status'] = array(
'#type' => 'submit',
'#value' => t('Update status'),
);
$form['#suffix'] = '</div>';
return $form;
}