root/releases/0.1.2a/units/profile/function_edit.php

Revision 2, 0.6 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     $body = "<form action=\"".url . $_SESSION['username']."/\" method=\"post\">";
4
5     // Cycle through all defined profile detail fields and display them
6
7     if (isset($data['profile:details']) && sizeof($data['profile:details']) > 0) {
8     
9         foreach($data['profile:details'] as $field) {
10             $body .= run("profile:editfield:display",$field);
11         }
12
13     }
14
15     $body .= <<< END
16
17     <p align="center">
18         <label>
19             Submit details:
20             <input type="submit" name="submit" value="Go" />
21         </label>
22         <input type="hidden" name="action" value="profile:edit" />
23     </p>
24
25 </form>
26 END;
27
28     $run_result .= $body;
29     
30 ?>
Note: See TracBrowser for help on using the browser.