| 5 blogapi.module | blogapi_blogger_get_users_blogs($appid, $username, $password) |
| 6 blogapi.module | blogapi_blogger_get_users_blogs($appid, $username, $password) |
1 string reference to 'blogapi_blogger_get_users_blogs'
File
- modules/
blogapi.module, line 136 - Enable users to post using applications that support XML-RPC blog APIs.
Code
function blogapi_blogger_get_users_blogs($appid, $username, $password) {
$user = blogapi_validate_user($username, $password);
if ($user->uid) {
$types = _blogapi_get_node_types();
$structs = array();
foreach ($types as $type) {
$structs[] = array(
'url' => url('blog/' . $user->uid, NULL, NULL, true),
'blogid' => $type,
'blogName' => $user->name . ": " . $type,
);
}
return $structs;
}
else {
return blogapi_error($user);
}
}
Login or register to post comments