2015-12-08 13:57:50 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name: Adult Photo Flag
|
|
|
|
* Description: Provides an optional feature to hide individual photos from the default album view
|
|
|
|
* Version: 1.0
|
|
|
|
* Author: Mike Macgirvin <mike@zothub.com>
|
2016-02-28 12:11:12 +01:00
|
|
|
* Maintainer: none
|
2015-12-08 13:57:50 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
function adultphotoflag_load() {
|
|
|
|
register_hook('get_features','addon/adultphotoflag/adultphotoflag.php','adultphotoflag_get_features');
|
|
|
|
}
|
|
|
|
|
|
|
|
function adultphotoflag_unload() {
|
|
|
|
unregister_hook('get_features','addon/adultphotoflag/adultphotoflag.php','adultphotoflag_get_features');
|
|
|
|
}
|
|
|
|
|
|
|
|
function adultphotoflag_get_features(&$a,&$b) {
|
|
|
|
|
|
|
|
$b['tools'][] = array(
|
|
|
|
'adult_photo_flagging',
|
|
|
|
t('Flag Adult Photos'),
|
|
|
|
t('Provide photo edit option to hide inappropriate photos from default album view'),false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|