You are here

function hook_vote_result_info_alter in Voting API 8.3

Alters the information provided in \Drupal\votingapi\Annotation\VoteResult.

Parameters

array $results: The array of vote results, keyed on the machine-readable name.

1 invocation of hook_vote_result_info_alter()
VoteResultFunctionManager::__construct in src/VoteResultFunctionManager.php
Constructs a new VoteResultFunctionManager.

File

./votingapi.api.php, line 19
Provides hook documentation for the VotingAPI module.

Code

function hook_vote_result_info_alter(&$results) {

  // Override the Voting API module's 'Count' vote result label.
  $results['count']['label'] = t('All the things');
}