You are here

function agenda_admin_delete in Agenda 7.2

Same name and namespace in other branches
  1. 6.2 agenda.admin.php \agenda_admin_delete()
  2. 6 agenda.admin.php \agenda_admin_delete()
  3. 7 agenda.admin.php \agenda_admin_delete()

Delete agenda

1 string reference to 'agenda_admin_delete'
agenda_menu in ./agenda.module
Implements hook_menu().

File

./agenda.admin.php, line 51
Administration interface for the agenda module

Code

function agenda_admin_delete($form, $form_state, $delta) {
  $form = array();
  $form['agenda_admin_delete_bid'] = array(
    '#type' => 'hidden',
    '#value' => (int) $delta,
  );
  $form['agenda_admin_delete_markup'] = array(
    '#markup' => '<p>' . t('Are you sure you wish to delete this block?') . '</p>',
  );
  $form['agenda_admin_delete_confirm'] = array(
    '#type' => 'submit',
    '#value' => t('Delete block'),
  );
  return $form;
}