feature management
This commit is contained in:
parent
7e547b230d
commit
5b1a15704b
32
include/features.php
Normal file
32
include/features.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Features management
|
||||
*/
|
||||
|
||||
|
||||
function feature_enabled($uid,$feature) {
|
||||
$x = get_pconfig($uid,'feature',$feature);
|
||||
$arr = array('uid' => $uid, 'feature' => $feature, 'enabled' => $x);
|
||||
call_hooks('feature_enabled',$arr);
|
||||
return($arr['enabled']);
|
||||
}
|
||||
|
||||
function get_features() {
|
||||
|
||||
$arr = array(
|
||||
|
||||
'multi_delete' => t('Multiple Deletion'),
|
||||
'expire' => t('Content Expiration'),
|
||||
'commtag' => t('Community Tagging'),
|
||||
'categories' => t('Post Categories'),
|
||||
'filing' => t('Saved Folders'),
|
||||
'archives' => t('Archives'),
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
||||
call_hooks('get_features',$arr);
|
||||
return $arr;
|
||||
}
|
@ -1 +1 @@
|
||||
2012-10-25.118
|
||||
2012-10-26.119
|
||||
|
Reference in New Issue
Block a user