function clock_delete_form in Clock 7.2
Form builder for the clock delete form.
Parameters
$clock: A clock object as returned by clock_info().
See also
1 string reference to 'clock_delete_form'
- clock_menu in ./
clock.module - Implements hook_menu().
File
- ./
clock.admin.inc, line 227 - Page generation functions for the administrative pages.
Code
function clock_delete_form($form, &$form_state, $clock) {
$form = array();
$form['cid'] = array(
'#type' => 'value',
'#value' => $clock->cid,
);
$form['delete'] = array(
'#markup' => '<p>' . t('Are you sure you want to delete this clock?') . '</p>',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Delete'),
);
$form['cancel'] = array(
'#type' => 'link',
'#title' => t('Cancel'),
'#href' => 'admin/structure/block/manage/clock/clock/',
);
return $form;
}