You are here

function fivestar_votingapi_metadata_alter in Fivestar 7.2

Same name and namespace in other branches
  1. 6.2 fivestar.module \fivestar_votingapi_metadata_alter()
  2. 6 fivestar.module \fivestar_votingapi_metadata_alter()

Implements hook_votingapi_metadata_alter().

File

./fivestar.module, line 854

Code

function fivestar_votingapi_metadata_alter(&$data) {
  foreach (fivestar_get_tags() as $tag) {

    // Add several custom tags that are being used by fivestar.
    $data['tags'][$tag] = array(
      'name' => t($tag),
      'description' => t('@tag used by fivestar.', array(
        '@tag' => $tag,
      )),
      'module' => 'fivestar',
    );
  }
}