aboutsummaryrefslogtreecommitdiff
path: root/mod/categories/actions/save.php
blob: 48f050c14a20b2ecc9928095a36d3c77f0228b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Elgg categories plugin category saver
 *
 * @package ElggCategories
 */

$categories = get_input('categories');
$categories = string_to_tag_array($categories);

$site = $CONFIG->site;
$site->categories = $categories;
system_message(elgg_echo("categories:save:success"));

elgg_delete_admin_notice('categories_admin_notice_no_categories');

forward($_SERVER['HTTP_REFERER']);