function references_dialog_entity_insert in References dialog 7
Implements hook_entity_insert().
File
- ./
references_dialog.module, line 522 - This the main module file.
Code
function references_dialog_entity_insert($entity, $entity_type) {
// If we are in a dialog, we want to make sure that we redirect to the
// the close dialog page, so that the dialog may be closed.
if (references_dialog_in_dialog() && references_dialog_close_on_submit()) {
references_dialog_close_on_redirect($entity, $entity_type);
}
}