From: friendica Date: Tue, 29 May 2012 00:35:24 +0000 (-0700) Subject: "morechoice" addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d45beab08f6546ca39673b916708023f552c7eb;p=friendica-addons.git "morechoice" addon --- diff --git a/morechoice.tgz b/morechoice.tgz new file mode 100644 index 00000000..b21e202f Binary files /dev/null and b/morechoice.tgz differ diff --git a/morechoice/morechoice.php b/morechoice/morechoice.php new file mode 100644 index 00000000..78a5102b --- /dev/null +++ b/morechoice/morechoice.php @@ -0,0 +1,54 @@ + + * + */ + + +function morechoice_install() { + + register_hook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector'); + register_hook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector'); + register_hook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector'); + +} + + +function morechoice_uninstall() { + + unregister_hook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector'); + unregister_hook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector'); + unregister_hook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector'); + +} + +// We aren't going to bother translating these to other languages. + +function morechoice_gender_selector($a,&$b) { + if($a->config['system']['language'] == 'en') { + $b[] = 'Trigender'; + + + } +} + +function morechoice_sexpref_selector($a,&$b) { + if($a->config['system']['language'] == 'en') { + $b[] = 'Girls with big tits'; + $b[] = 'Millionaires'; + $b[] = 'Guys with big schlongs'; + $b[] = 'Easy women'; + + } +} + +function morechoice_marital_selector($a,&$b) { + if($a->config['system']['language'] == 'en') { + $b[] = 'Married to my job'; + + + } +}