function eck__bundle__delete_form in Entity Construction Kit (ECK) 7
Same name and namespace in other branches
- 7.3 eck.bundle.inc \eck__bundle__delete_form()
- 7.2 eck.bundle.inc \eck__bundle__delete_form()
1 string reference to 'eck__bundle__delete_form'
- eck__entity__menu in ./
eck.entity.inc - This function creates the menu items related to entity administration
File
- ./
eck.bundle.inc, line 274 - All of the menu, pages, and forms related to bundle administration.
Code
function eck__bundle__delete_form($form, &$form_state, $entity_type, $bundle) {
$form['entity_type'] = array(
'#type' => 'value',
'#value' => $entity_type,
);
$form['bundle'] = array(
'#type' => 'value',
'#value' => $bundle,
);
$form['submit_redirect'] = array(
'#type' => 'value',
'#value' => "admin/structure/eck/{$entity_type->name}",
);
$message = t("Are you sure that you want to delete the bundle '{$bundle->name}'");
$caption = t("All of the data (entities) associated with this bundle\n will be deleted. This action cannot be undone.");
return confirm_form($form, $message, "admin/structure/eck/{$entity_type->name}", $caption, t('Delete'));
}