function party_devel_generate_parties_form_submit in Party 7
Same name and namespace in other branches
- 8.2 modules/party_devel/party_devel.module \party_devel_generate_parties_form_submit()
File
- modules/
party_devel/ party_devel.module, line 52 - Party Developer Tools
Code
function party_devel_generate_parties_form_submit($form_id, &$form_state) {
module_load_include('inc', 'party_devel', 'devel_generate');
if ($form_state['values']['num_parties'] <= 50) {
party_devel_generate_parties($form_state);
}
else {
module_load_include('inc', 'party_devel', 'devel_generate_batch');
party_devel_generate_batch_parties($form_state);
}
}