function abjs_experience_delete_confirm_form in A/B Test JS 7
Returns confirm form for deleting experience.
1 string reference to 'abjs_experience_delete_confirm_form'
- abjs_menu in ./
abjs.module - Implements hook_menu().
File
- ./
abjs.admin.inc, line 935 - Admin forms to view/add/edit/delete tests, conditions, experiences.
Code
function abjs_experience_delete_confirm_form($form, &$form_state, $eid) {
$form = array();
$experience_result = db_query('SELECT name FROM {abjs_experience} WHERE eid = :eid', array(
':eid' => $eid,
));
if (!empty($experience_result)) {
$form['eid'] = array(
'#type' => 'value',
'#value' => $eid,
);
$experience = $experience_result
->fetchObject();
$form['name'] = array(
'#type' => 'value',
'#value' => $experience->name,
);
return confirm_form($form, t('Are you sure you want to delete this experience: %name?', array(
'%name' => $experience->name,
)), 'admin/config/user-interface/abjs/experiences', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}
return $form;
}