diff options
author | redmatrix <git@macgirvin.com> | 2016-05-20 22:13:20 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-20 22:13:20 -0700 |
commit | 019250eff879d86577157ad6136a3613b61cacb8 (patch) | |
tree | c22d2eda2cee6b836a331104db588d9396626891 /include/network.php | |
parent | ac095c89f1ef8cf2207c3db94b10c6e4a3d8f5a7 (diff) | |
download | volse-hubzilla-019250eff879d86577157ad6136a3613b61cacb8.tar.gz volse-hubzilla-019250eff879d86577157ad6136a3613b61cacb8.tar.bz2 volse-hubzilla-019250eff879d86577157ad6136a3613b61cacb8.zip |
consolidate include/*_selectors.php (not touching acl_selectors for the moment, as it will likely end up with a different disposition)
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php index 25307f857..f38f8d548 100644 --- a/include/network.php +++ b/include/network.php @@ -2150,3 +2150,29 @@ function get_repository_version($branch = 'master') { return '?.?'; } + +function network_to_name($s) { + + $nets = array( + NETWORK_DFRN => t('Friendica'), + NETWORK_FRND => t('Friendica'), + NETWORK_OSTATUS => t('OStatus'), + NETWORK_GNUSOCIAL => t('GNU-Social'), + NETWORK_FEED => t('RSS/Atom'), + NETWORK_MAIL => t('Email'), + NETWORK_DIASPORA => t('Diaspora'), + NETWORK_FACEBOOK => t('Facebook'), + NETWORK_ZOT => t('Zot'), + NETWORK_LINKEDIN => t('LinkedIn'), + NETWORK_XMPP => t('XMPP/IM'), + NETWORK_MYSPACE => t('MySpace'), + ); + + call_hooks('network_to_name', $nets); + + $search = array_keys($nets); + $replace = array_values($nets); + + return str_replace($search,$replace,$s); + +} |