- $arr = array(
- 'poke' => array('poked', t('poke'), t('poked')),
- 'ping' => array('pinged', t('ping'), t('pinged')),
- 'prod' => array('prodded', t('prod'), t('prodded')),
- 'slap' => array('slapped', t('slap'), t('slapped')),
- 'finger' => array('fingered', t('finger'), t('fingered')),
- 'rebuff' => array('rebuffed', t('rebuff'), t('rebuffed')),
- );
- call_hooks('poke_verbs', $arr);
- return $arr;
-}
-
-/**
- * Load moods
- * @return array index is mood, value is translated mood
- * @hook mood_verbs moods array
- */
-function get_mood_verbs() {
-
- $arr = array(
- 'happy' => t('happy'),
- 'sad' => t('sad'),
- 'mellow' => t('mellow'),
- 'tired' => t('tired'),
- 'perky' => t('perky'),
- 'angry' => t('angry'),
- 'stupefied' => t('stupified'),
- 'puzzled' => t('puzzled'),
- 'interested' => t('interested'),
- 'bitter' => t('bitter'),
- 'cheerful' => t('cheerful'),
- 'alive' => t('alive'),
- 'annoyed' => t('annoyed'),
- 'anxious' => t('anxious'),
- 'cranky' => t('cranky'),
- 'disturbed' => t('disturbed'),
- 'frustrated' => t('frustrated'),
- 'motivated' => t('motivated'),
- 'relaxed' => t('relaxed'),
- 'surprised' => t('surprised'),
- );
-
- call_hooks('mood_verbs', $arr);
+ $arr = [
+ 'poke' => ['poked', t('poke'), t('poked')],
+ 'ping' => ['pinged', t('ping'), t('pinged')],
+ 'prod' => ['prodded', t('prod'), t('prodded')],
+ 'slap' => ['slapped', t('slap'), t('slapped')],
+ 'finger' => ['fingered', t('finger'), t('fingered')],
+ 'rebuff' => ['rebuffed', t('rebuff'), t('rebuffed')],
+ ];
+ Addon::callHooks('poke_verbs', $arr);