function spaces_user_purl_modifiers in Spaces 6
Same name and namespace in other branches
- 6.2 spaces_user/spaces_user.module \spaces_user_purl_modifiers()
Implementation of hook_purl_modifiers().
File
- spaces_user/
spaces_user.module, line 257
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,
);
}