function agenda_admin_delete_submit in Agenda 6
Same name and namespace in other branches
- 6.2 agenda.admin.php \agenda_admin_delete_submit()
- 7.2 agenda.admin.php \agenda_admin_delete_submit()
- 7 agenda.admin.php \agenda_admin_delete_submit()
Delete an agenda action
File
- ./
agenda.admin.php, line 76 - Administration interface for the agenda module
Code
function agenda_admin_delete_submit($form, $form_state) {
db_query('DELETE FROM {agenda} WHERE bid=%d', $form['agenda_admin_delete_bid']['#value']);
drupal_set_message('Agenda block was deleted');
drupal_goto('admin/settings/agenda');
}