mysite_get_pages($uid)
mysite.module, line 1232
Return an array of all pages in a user collection.
$uid The user id of the MySite collection owner.
An array of page data, with page numbers as the keys. Or '0' if the user has no page.
function mysite_get_pages($uid) {
$pages = array(0);
$result = db_query("SELECT page, uid, created, updated, status, title, layout, style, format, theme FROM {mysite_page} WHERE uid = %d", $uid);
while ($data = db_fetch_array($result)) {
$pages[$data['page']] = $data;
}
return $pages;
}