function vud_votingapi_metadata_alter in Vote Up/Down 7
Same name and namespace in other branches
- 6.3 vud.module \vud_votingapi_metadata_alter()
- 6.2 vud.module \vud_votingapi_metadata_alter()
- 7.2 vud.module \vud_votingapi_metadata_alter()
Implementation of hook_votingapi_metadata_alter().
File
- ./
vud.module, line 225 - Implements the core voting module on top of Voting API.
Code
function vud_votingapi_metadata_alter(&$data) {
$data['functions']['positives'] = array(
'name' => t('Positives'),
'description' => t('The sum of all positive votes for a content.'),
'module' => 'vud',
);
$data['functions']['negatives'] = array(
'name' => t('Negatives'),
'description' => t('The sum of all negative votes for a content.'),
'module' => 'vud',
);
}