You are here

function profile_categories in Drupal 4

Same name and namespace in other branches
  1. 5 modules/profile/profile.module \profile_categories()
  2. 6 modules/profile/profile.module \profile_categories()
1 call to profile_categories()
profile_user in modules/profile.module
Implementation of hook_user().

File

modules/profile.module, line 732
Support for configurable user profiles.

Code

function profile_categories() {
  $result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
  while ($category = db_fetch_object($result)) {
    $data[] = array(
      'name' => $category->category,
      'title' => $category->category,
      'weight' => 3,
    );
  }
  return $data;
}