You are here

function _eloqua_post_load in Eloqua 6

Loads the post object from the database

Parameters

$post_id int:

Return value

object

1 call to _eloqua_post_load()
eloqua_post_load in ./eloqua.inc
Loads a post form the database @hook eloqua_post_load ($post)
1 string reference to '_eloqua_post_load'
eloqua_post_load in ./eloqua.inc
Loads a post form the database @hook eloqua_post_load ($post)

File

./eloqua.inc, line 545

Code

function _eloqua_post_load($post_id) {
  $sql = 'SELECT * FROM ' . ELOQUA_SCHEMA_SAVED_POSTS . ' WHERE ' . ELOQUA_POST_FIELD_POST_ID . ' = %d';
  $params = array(
    $post_id,
  );
  $result = _eloqua_select_query($sql, $params, array(
    ELOQUA_QUERY_OPTION_UNSERIALIZE_DATA => TRUE,
  ));
  return $result;
}