aboutsummaryrefslogtreecommitdiffstats
path: root/include/features.php
blob: efd9c3455b9674f66a1cd052ae13b929424f0a31 (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
32
33
34
<?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(

array('multi_delete', t('Multiple Deletion'),  t('Select and delete multiple posts/comments at once')),
array('expire',       t('Content Expiration'), t('Remove old posts/comments after a period of time')),
array('commtag',      t('Community Tagging'),  t('Tag existing posts and share the links')),
array('categories',   t('Post Categories'),    t('Add categories to your channel postings')),
array('filing',       t('Saved Folders'),      t('Ability to file posts under easily remembered names')),
array('archives',     t('Search by Date'),     t('Select posts by date ranges')),
array('dislike',      t('Dislike Posts'),      t('Ability to dislike posts/comments')),
array('savedsearch',  t('Saved Searches'),     t('Save search terms for re-use')),
array('preview',      t('Post Preview'),       t('Preview posts and comments before publishing them')),
array('edit_posts',   t('Edit Sent Posts'),    t('Edit/correct posts and comments after sending')),

);

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