function relation_ui_type_delete_confirm_submit in Relation 7
Process relation type delete confirm submissions.
File
- ./
relation_ui.module, line 431 - Provide administration interface for relation type bundles.
Code
function relation_ui_type_delete_confirm_submit($form, &$form_state) {
relation_type_delete($form_state['values']['relation_type']);
$t_args = array(
'%label' => $form_state['values']['label'],
);
drupal_set_message(t('The %label relation type has been deleted.', $t_args));
watchdog('relation', 'Deleted the %label relation type.', $t_args, WATCHDOG_NOTICE);
// @TODO: relation_types_rebuild() ?;
menu_rebuild();
$form_state['redirect'] = 'admin/structure/relation';
return;
}