function spaces_user_purl_modifiers in Spaces 6.2
Same name and namespace in other branches
- 6 spaces_user/spaces_user.module \spaces_user_purl_modifiers()
Implementation of hook_purl_modifiers().
File
- spaces_user/
spaces_user.module, line 272
Code
function spaces_user_purl_modifiers($reset = FALSE) {
static $modifiers;
if (!isset($modifiers) || $reset) {
$modifiers = array();
$result = db_query("SELECT uid, name FROM {users} WHERE status = 1");
while ($row = db_fetch_object($result)) {
$modifiers[] = array(
'value' => 'space-' . spaces_user_make_purl($row->name),
'id' => $row->uid,
);
}
}
return array(
'spaces_user' => $modifiers,
);
}