mysite_load_page

Definition

mysite_load_page($uid, $page = 0)
mysite.module, line 1303

Description

Return data for a single page from a user collection.

Parameters

$uid The user id of the MySite collection owner.

$page The current page of the MySite collection.

Return value

An object containing information for the current page, identical to mysite_get().

Code

function mysite_load_page($uid, $page = 0) {
  $data = db_fetch_object(db_query("SELECT page, uid, created, updated, status, title, layout, style, format, theme FROM {mysite_page} WHERE uid = %d AND page = %d", $uid, $page));
  return $data;
}