blogapi_blogger_get_users_blogs

Definition

blogapi_blogger_get_users_blogs($appid, $username, $password)
modules/blogapi/blogapi.module, line 140

Code

<?php
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);
  }
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.