root/releases/0.1.1b/units/profile/function_view.php

Revision 2, 456 bytes (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Cycle through all defined profile detail fields and display them
4
5     if (isset($data['profile:details']) && sizeof($data['profile:details']) > 0) {
6     
7         global $profile_id;
8         $allvalues = db_query("select * from profile_data where owner = '$profile_id'");
9         
10         if (sizeof($allvalues) > 0) {
11             foreach($data['profile:details'] as $field) {
12                 $run_result .= run("profile:field:display",array($field, $allvalues));
13             }
14         }
15
16     }
17
18 ?>
Note: See TracBrowser for help on using the browser.