From b027f962af16d074398d1351a90d863aaf5469f3 Mon Sep 17 00:00:00 2001 From: nickw Date: Wed, 26 May 2010 18:25:08 +0000 Subject: Updating Sitepages plugin settings for new administration layout. git-svn-id: http://code.elgg.org/elgg/trunk@6242 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/sitepages/actions/edit_settings.php | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 mod/sitepages/actions/edit_settings.php (limited to 'mod/sitepages/actions/edit_settings.php') diff --git a/mod/sitepages/actions/edit_settings.php b/mod/sitepages/actions/edit_settings.php new file mode 100644 index 000000000..d79c38240 --- /dev/null +++ b/mod/sitepages/actions/edit_settings.php @@ -0,0 +1,50 @@ +title = $page_type; + $sitepage->description = $content; + $sitepage->tags = string_to_tag_array(get_input('sitepages_tags')); + + break; + case 'seo': + $sitepage->title = get_input('metatags', '', FALSE);; + $sitepage->description = get_input('description', '', FALSE); + + break; + case 'frontsimple': + default: + $params = get_input('params', array()); + set_plugin_setting('ownfrontpage', $params['ownfrontpage'], 'sitepages'); + + $sitepage->welcometitle = get_input('welcometitle', '', FALSE); + $sitepage->welcomemessage = get_input('welcomemessage', '', FALSE); + $sitepage->sidebartitle = get_input('sidebartitle', '', FALSE); + $sitepage->sidebarmessage = get_input('sidebarmessage', '', FALSE); + + break; +} + +if ($sitepage->save()) { + system_message(elgg_echo('sitepages:posted')); +} else { + register_error(elgg_echo('sitepages:error')); +} + +forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3