]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
forms/friends/edit no longer contains input/form logic
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 00:26:06 +0000 (00:26 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 00:26:06 +0000 (00:26 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8396 36083f99-b078-4883-b0ff-0f9b5a30f544

pages/friends/add.php
pages/friends/edit.php
views/default/forms/friends/edit.php

index 1b7b0288fa91923bb03acd1d98a3c72922000a0b..96da26ae17da0689f26d5f230e81445866def137 100644 (file)
@@ -13,7 +13,7 @@ $title = elgg_echo('friends:collections:add');
 
 $content = elgg_view_title($title);
 
-$content .= elgg_view('forms/friends/edit', array(
+$content .= elgg_view_form('friends/edit', array(), array(
        'friends' => get_user_friends(elgg_get_logged_in_user_guid(), "", 9999)
        )
 );
index e2c707b7c6a9de118a512675ca01f86a872b4826..6659293197f051ecba08f3cf1695b6ee621c7c49 100644 (file)
@@ -22,7 +22,7 @@ $collection = get_access_collection($collection_id);
 //get all members of the collection
 $collection_members = get_members_of_access_collection($collection_id);
 
-$content .= elgg_view('forms/friends/edit', array('collection' => $collection,
+$content .= elgg_view_form('friends/edit', array(), array('collection' => $collection,
        'collection_members' => $collection_members));
 
 $body = elgg_view_layout('one_sidebar', array('content' => $content));
index e3bc28cfc8db158310165a988a47e8633b9b3d44..223ce3836e5f987d287d166ee4598e148af2e1d1 100644 (file)
@@ -52,4 +52,4 @@ if (isset($vars['collection'])) {
 $form_body .= elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('save')));
 $form_body .= "</div></div>";
 
-echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/$action"));
\ No newline at end of file
+echo $form_body;
\ No newline at end of file