You are here

function timeline_bookmark_load in MediaFront 7.2

Loads a timeline bookmark provided a bookmark ID.

Parameters

type $bid:

Return value

null

1 call to timeline_bookmark_load()
timeline_bookmark_get in modules/timeline_bookmark/timeline_bookmark.module
Gets a bookmark object.

File

modules/timeline_bookmark/timeline_bookmark.module, line 366

Code

function timeline_bookmark_load($bid) {

  // Make sure the bookmark id isn't empty.
  if (!empty($bid)) {

    // Get the timeline bookmark.
    return db_select('timeline_bookmark', 'tb')
      ->fields('tb')
      ->condition('tb.bid', intval($bid))
      ->execute()
      ->fetchObject();
  }
  else {

    // Return null.
    return null;
  }
}