aboutsummaryrefslogtreecommitdiff
path: root/mod/categories/actions/save.php
blob: 3aa8b3261688f4abeee5f973107757362f0e29ce (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 = elgg_get_site_entity();
$site->categories = $categories;
system_message(elgg_echo("categories:save:success"));

elgg_delete_admin_notice('categories_admin_notice_no_categories');

forward(REFERER);