You are here

function _votingapi_reaction_get_reactions in Voting API Reaction 8

Helper function to return default reactions.

2 calls to _votingapi_reaction_get_reactions()
votingapi_reaction_install in ./votingapi_reaction.install
Implements hook_install().
votingapi_reaction_uninstall in ./votingapi_reaction.install
Implements hook_uninstall().

File

./votingapi_reaction.install, line 59
Contains voting_reactions.install.

Code

function _votingapi_reaction_get_reactions() {
  return [
    "reaction_angry" => "I'm angry",
    "reaction_laughing" => "I'm laughing",
    "reaction_like" => "I like this",
    "reaction_love" => "I love this",
    "reaction_sad" => "I'm sad",
    "reaction_surprised" => "I'm surprised",
  ];
}