You are here

function advpoll_ranking_update_7000 in Advanced Poll 7.3

Removes Show votes option.

File

advpoll_ranking/advpoll_ranking.install, line 82
Install file for Advanced Ranking Poll.

Code

function advpoll_ranking_update_7000() {
  $t = get_t();

  // Add borda and run-off to allow ranking-style display and voting.
  $field = array(
    'field_name' => 'advpoll_behavior',
    'settings' => array(
      'allowed_values' => array(
        'approval' => $t('Approval voting'),
        'pool' => $t('Pool votes and choices'),
        'borda' => $t('Borda count (Ranking Poll)'),
        'runoff' => $t('Instant-runoff (Ranking Poll)'),
        'borda_all' => $t('Borda count drag and drop (Ranking Poll)'),
        'runoff_all' => $t('Instant-runoff drag and drop (Ranking Poll)'),
      ),
      'allowed_values_function' => '',
    ),
  );
  field_update_field($field);
}