function bundle_inherit_attach_inherit_form_submit in Bundle Inherit 7
Should be executed when entity creation form is submiting.
Parameters
$bundle: Newly created bundle name.
1 call to bundle_inherit_attach_inherit_form_submit()
- bundle_inherit_node_form_submit in bundle_inherit_node/
bundle_inherit_node.module - Additional submit handler to the 'node_type_form' form. Perform inherit operations.
File
- ./
bundle_inherit.module, line 303 - Bundle Inherit module.
Code
function bundle_inherit_attach_inherit_form_submit($bundle, &$form, &$form_state) {
if (isset($form_state['values']['bundle_inherit']) && $form_state['values']['bundle_inherit']['inherit']) {
$bundle_inherit_values = $form_state['values']['bundle_inherit'];
bundle_inherit_perform($bundle_inherit_values['entity_type'], $bundle, $bundle_inherit_values['parent_type'], $bundle_inherit_values['mode'] == 'strict' ? TRUE : FALSE);
}
}