function votingapi_generate_votes_form_submit in Voting API 7.2
Same name and namespace in other branches
- 5 votingapi_generate.module \votingapi_generate_votes_form_submit()
- 6.2 votingapi.admin.inc \votingapi_generate_votes_form_submit()
- 7.3 votingapi.admin.inc \votingapi_generate_votes_form_submit()
Submit handler for votingapi_generate_votes_form.
File
- ./
votingapi.admin.inc, line 94 - Configuration forms and helper functions for VotingAPI module.
Code
function votingapi_generate_votes_form_submit($form, &$form_state) {
$options = array(
'types' => $form_state['values']['node_types'],
'kill' => $form_state['values']['kill_votes'],
);
require_once drupal_get_path('module', 'votingapi') . '/votingapi.devel.inc';
votingapi_generate_votes('node', $form_state['values']['vote_type'], $options);
}