function relation_ui_delete_confirm_submit in Relation 7
Executes relation deletion.
File
- ./
relation_ui.module, line 812 - Provide administration interface for relation type bundles.
Code
function relation_ui_delete_confirm_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
$relation = $form['#relation'];
relation_delete($form_state['values']['rid']);
watchdog('relation', '@type: deleted %title.', array(
'@type' => $relation->relation_type,
'%title' => $relation->rid,
));
drupal_set_message(t('@type %title has been deleted.', array(
'@type' => $relation->relation_type,
'%title' => $relation->rid,
)));
}
$form_state['redirect'] = '<front>';
}