| Versionen | |
|---|---|
| drupal6 – drupal7 | profile_categories() |
modules/
<?php
function profile_categories() {
$result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
$data = array();
while ($category = db_fetch_object($result)) {
$data[] = array(
'name' => $category->category,
'title' => $category->category,
'weight' => 3,
'access callback' => 'profile_category_access',
'access arguments' => array(1, $category->category)
);
}
return $data;
}
?>
Kommentare
Kommentar hinzufügen