diff options
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/actions/edit.php | 6 | ||||
-rw-r--r-- | mod/groups/start.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/edit.php | 8 |
3 files changed, 12 insertions, 5 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php index 216a22702..c8a68d238 100644 --- a/mod/groups/actions/edit.php +++ b/mod/groups/actions/edit.php @@ -26,14 +26,14 @@ foreach ($CONFIG->group as $shortname => $valuetype) { $input[$shortname] = html_entity_decode($input[$shortname], ENT_COMPAT, 'UTF-8'); } - if ($shortname == 'name') { - $input[$shortname] = strip_tags($input[$shortname]); - } if ($valuetype == 'tags') { $input[$shortname] = string_to_tag_array($input[$shortname]); } } +$input['name'] = get_input('name'); +$input['name'] = html_entity_decode($input['name'], ENT_COMPAT, 'UTF-8'); + $user = get_loggedin_user(); $group_guid = (int)get_input('group_guid'); diff --git a/mod/groups/start.php b/mod/groups/start.php index c0fc90135..0b2926a18 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -103,11 +103,10 @@ function groups_init() { function groups_fields_setup() { $profile_defaults = array( - 'name' => 'text', 'description' => 'longtext', 'briefdescription' => 'text', 'interests' => 'tags', - //'website' => 'url', + //'website' => 'url', ); $profile_defaults = elgg_trigger_plugin_hook('profile:fields', 'group', NULL, $profile_defaults); diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 453e3be2c..a5d5e21e5 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -17,6 +17,14 @@ if (isset($vars['entity'])) { <label><?php echo elgg_echo("groups:icon"); ?></label><br /> <?php echo elgg_view("input/file", array('internalname' => 'icon')); ?> </p> +<p> + <label><?php echo elgg_echo("groups:name"); ?></label><br /> + <?php echo elgg_view("input/text", array( + 'internalname' => 'name', + 'value' => $vars['entity']->name, + )); + ?> +</p> <?php $group_profile_fields = elgg_get_config('group'); |