]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moved name out of configurable fields for a group
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 2 Feb 2011 12:25:40 +0000 (12:25 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 2 Feb 2011 12:25:40 +0000 (12:25 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7988 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/actions/edit.php
mod/groups/start.php
mod/groups/views/default/forms/groups/edit.php

index 216a22702e523beac248597da465f3a866454fdf..c8a68d238277f1749e56bcf6cd58285104d0c9b2 100644 (file)
@@ -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');
index c0fc90135fdaa05c80eb655e43e159653aa88093..0b2926a18fd19a7d9a907da37f8058e1907e35b6 100644 (file)
@@ -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);
index 453e3be2ccffaf02875503f4b936879bab1e0220..a5d5e21e52fec53a98afcac58a15d151c16cf7a5 100644 (file)
@@ -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');