You are here

function votingapi_generate_votes_form_submit in Voting API 7.3

Same name and namespace in other branches
  1. 5 votingapi_generate.module \votingapi_generate_votes_form_submit()
  2. 6.2 votingapi.admin.inc \votingapi_generate_votes_form_submit()
  3. 7.2 votingapi.admin.inc \votingapi_generate_votes_form_submit()

Submit handler for votingapi_generate_votes_form.

File

./votingapi.admin.inc, line 81
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.drush.inc';
  votingapi_generate_votes('node', $form_state['values']['vote_type'], $options);
}