blogapi_blogger_get_users_blogs

Versions
4.6 – 6
blogapi_blogger_get_users_blogs($appid, $username, $password)

Code

modules/blogapi/blogapi.module, line 140

<?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, array('absolute' => TRUE)), 'blogid' => $type, 'blogName' => $user->name .": ". $type);
    }
    return $structs;
  }
  else {
    return blogapi_error($user);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.