You are here

function votingapi_settings in Voting API 5

1 string reference to 'votingapi_settings'
votingapi_menu in ./votingapi.module

File

./votingapi.module, line 38

Code

function votingapi_settings() {
  $form['votingapi_calculation_schedule'] = array(
    '#type' => 'radios',
    '#title' => t('Vote tallying'),
    '#description' => t('On high-traffic sites, administrators can use this setting to postpone the calculation of vote results.'),
    '#default_value' => variable_get('votingapi_calculation_schedule', 'immediate'),
    '#options' => array(
      'immediate' => t('Tally results whenever a vote is cast'),
      'cron' => t('Tally results at cron-time'),
      'manual' => t('Never tally votes: I am using a custom module to control vote results'),
    ),
  );
  return system_settings_form($form);
}