aboutsummaryrefslogtreecommitdiffstats
path: root/include/features.php
blob: d7471854086e5fe9b4a0182206a94d9d571310c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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('Search by Date'),


);

	call_hooks('get_features',$arr);
	return $arr;
}