mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
28 lines
713 B
PHP
Executable file
28 lines
713 B
PHP
Executable file
<?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>
|
|
|
|
*/
|
|
|
|
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);
|
|
|
|
}
|
|
|