friendica-addons/morechoice/morechoice.php

56 lines
1.5 KiB
PHP
Raw Normal View History

2012-05-29 02:35:24 +02: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-31 01:45:14 +02:00
* - who takes no responsibility for any additional content which may appear herein
2012-05-29 02:35:24 +02:00
*
*/
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';
2012-05-29 04:40:22 +02:00
$b[] = 'Polygamist';
2012-05-29 02:35:24 +02:00
}
}