commit
1cdee234f7
3 changed files with 0 additions and 49 deletions
1
boot.php
1
boot.php
|
@ -411,7 +411,6 @@ define('ACTIVITY_SHARE', NAMESPACE_ACTIVITY_SCHEMA . 'share');
|
||||||
define('ACTIVITY_DELETE', NAMESPACE_ACTIVITY_SCHEMA . 'delete');
|
define('ACTIVITY_DELETE', NAMESPACE_ACTIVITY_SCHEMA . 'delete');
|
||||||
|
|
||||||
define('ACTIVITY_POKE', NAMESPACE_ZOT . '/activity/poke');
|
define('ACTIVITY_POKE', NAMESPACE_ZOT . '/activity/poke');
|
||||||
define('ACTIVITY_MOOD', NAMESPACE_ZOT . '/activity/mood');
|
|
||||||
|
|
||||||
define('ACTIVITY_OBJ_BOOKMARK', NAMESPACE_ACTIVITY_SCHEMA . 'bookmark');
|
define('ACTIVITY_OBJ_BOOKMARK', NAMESPACE_ACTIVITY_SCHEMA . 'bookmark');
|
||||||
define('ACTIVITY_OBJ_COMMENT', NAMESPACE_ACTIVITY_SCHEMA . 'comment');
|
define('ACTIVITY_OBJ_COMMENT', NAMESPACE_ACTIVITY_SCHEMA . 'comment');
|
||||||
|
|
|
@ -258,20 +258,6 @@ function localize_item(&$item) {
|
||||||
$item['body'] = sprintf($txt, $A, $B). "\n\n\n" . $Bphoto;
|
$item['body'] = sprintf($txt, $A, $B). "\n\n\n" . $Bphoto;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (stristr($item['verb'], ACTIVITY_MOOD)) {
|
|
||||||
$verb = urldecode(substr($item['verb'], strpos($item['verb'], '#') + 1));
|
|
||||||
if (! $verb) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$Aname = $item['author-name'];
|
|
||||||
$Alink = $item['author-link'];
|
|
||||||
$A = '[url=' . zrl($Alink) . ']' . $Aname . '[/url]';
|
|
||||||
|
|
||||||
$txt = t('%1$s is currently %2$s');
|
|
||||||
|
|
||||||
$item['body'] = sprintf($txt, $A, t($verb));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (activity_match($item['verb'], ACTIVITY_TAG)) {
|
if (activity_match($item['verb'], ACTIVITY_TAG)) {
|
||||||
/// @TODO may hurt performance "joining" two tables + asterisk
|
/// @TODO may hurt performance "joining" two tables + asterisk
|
||||||
|
|
|
@ -1118,40 +1118,6 @@ function get_poke_verbs() {
|
||||||
return $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);
|
|
||||||
return $arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Translate days and months names.
|
* @brief Translate days and months names.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue