function relation_ui_generate_form_submit in Relation 7
File
- ./
relation_ui.module, line 483 - Provide administration interface for relation type bundles.
Code
function relation_ui_generate_form_submit($form, &$form_state) {
$number = $form_state['values']['relation_number'];
$types = $form_state['values']['relation_types'];
$kill = $form_state['values']['relation_kill'];
if (is_numeric($number) && $number > 0) {
include_once drupal_get_path('module', 'relation') . '/relation.drush.inc';
$types = array_keys(array_filter($types));
$rids = relation_generate_relations($number, $types, $kill);
}
}