friendica-addons/morechoice/morechoice.php

128 lines
3.6 KiB
PHP
Raw Normal View History

2012-05-28 20:35:24 -04:00
<?php
/**
* Name: More Choice
* Description: Additional gender/sexual preference/marital status options
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
2012-05-30 19:45:14 -04:00
* - who takes no responsibility for any additional content which may appear herein
2012-05-28 20:35:24 -04:00
*
*/
use Friendica\Core\Addon;
use Friendica\Core\Config;
2012-05-28 20:35:24 -04:00
function morechoice_install() {
Addon::registerHook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector');
Addon::registerHook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector');
Addon::registerHook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector');
2012-05-28 20:35:24 -04:00
}
function morechoice_uninstall() {
Addon::unregisterHook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector');
Addon::unregisterHook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector');
Addon::unregisterHook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector');
// We need to leave this here for a while, because we now have a situation where people can end up with an orphaned hook.
Addon::unregisterHook('poke_verbs', 'addon/morechoice/morechoice.php', 'morechoice_poke_verbs');
2012-05-28 20:35:24 -04:00
}
// We aren't going to bother translating these to other languages.
2012-05-28 20:35:24 -04:00
function morechoice_gender_selector($a,&$b) {
if(Config::get('system', 'language') == 'en') {
2012-05-30 09:21:17 -04:00
$b[] = 'Androgyne';
$b[] = 'Bear';
$b[] = 'Bigender';
2012-05-30 09:21:17 -04:00
$b[] = 'Cross dresser';
$b[] = 'Drag queen';
$b[] = 'Eunuch';
$b[] = 'Faux queen';
2012-05-30 09:21:17 -04:00
$b[] = 'Gender fluid';
$b[] = 'Kathoey';
$b[] = 'Lady';
$b[] = 'Lipstick lesbian';
$b[] = 'Metrosexual';
$b[] = 'Monk';
$b[] = 'Nun';
$b[] = 'Soft butch';
$b[] = 'Stone femme';
$b[] = 'Tomboy';
$b[] = 'Transman';
$b[] = 'Transwoman';
$b[] = 'Transvesti';
2012-05-28 20:35:24 -04:00
$b[] = 'Trigender';
2012-05-30 09:21:17 -04:00
$b[] = 'Can\'t remember';
$b[] = 'Hard to tell these days';
2012-05-28 20:35:24 -04:00
}
}
function morechoice_sexpref_selector($a,&$b) {
if(Config::get('system', 'language') == 'en') {
2012-05-28 20:35:24 -04:00
$b[] = 'Girls with big tits';
$b[] = 'Millionaires';
$b[] = 'Guys with big schlongs';
$b[] = 'Easy women';
2012-05-30 09:21:17 -04:00
$b[] = 'People with impaired mobility';
$b[] = 'Amputees';
$b[] = 'Statues, mannequins and immobility';
$b[] = 'Pain';
$b[] = 'Trans men';
$b[] = 'Older women';
$b[] = 'Asphyxiation';
$b[] = 'In public';
$b[] = 'In danger';
$b[] = 'Pretending to be male';
$b[] = 'Pretending to be female';
$b[] = 'Breats';
$b[] = 'Scat';
$b[] = 'Crying';
$b[] = 'Nappies/Diapers';
$b[] = 'Trees';
$b[] = 'Vomit';
$b[] = 'Murder';
$b[] = 'Fat people';
$b[] = 'Feet';
$b[] = 'Covered in insects';
$b[] = 'Turning a human being into furniture';
$b[] = 'Elderly people';
$b[] = 'Transgender people';
$b[] = 'Criminals';
$b[] = 'Stealing';
$b[] = 'Breast milk';
$b[] = 'Immersing genitals in liquids';
$b[] = 'Giants';
$b[] = 'Masochism';
$b[] = 'Cars';
$b[] = 'Menstruation';
$b[] = 'Mucus';
$b[] = 'Obscene language';
$b[] = 'Noses';
$b[] = 'Navels';
$b[] = 'Corpses';
$b[] = 'Smells';
$b[] = 'Buttocks';
$b[] = 'Nonliving objects';
$b[] = 'Sleeping people';
$b[] = 'Urination';
$b[] = 'Eating people';
$b[] = 'Being eaten';
$b[] = 'Animals';
$b[] = 'I\'d rather just have some chocolate';
2012-05-28 20:35:24 -04:00
}
}
function morechoice_marital_selector($a,&$b) {
if(Config::get('system', 'language') == 'en') {
2012-05-28 20:35:24 -04:00
$b[] = 'Married to my job';
2012-05-28 22:40:22 -04:00
$b[] = 'Polygamist';
2012-05-30 09:21:17 -04:00
$b[] = 'Half married';
$b[] = 'Living in the past';
$b[] = 'Pretending to be over my ex';
$b[] = 'Hurt in the past';
$b[] = 'Wallowing in self-pity';
2012-05-28 20:35:24 -04:00
}
2012-07-19 21:13:29 -04:00
}