You are here

function _eloqua_webform_load in Eloqua 6

Loads the webform object from the database

Parameters

$nid int:

Return value

object

1 call to _eloqua_webform_load()
eloqua_webform_load in ./eloqua.inc
Loads a webform settings from the database @hook eloqua_form_load ($webform)

File

./eloqua.inc, line 294

Code

function _eloqua_webform_load($nid) {
  $sql = 'SELECT * FROM ' . ELOQUA_SCHEMA_WEBFORM . ' WHERE ' . ELOQUA_WEBFORM_FIELD_NODE_ID . ' = %d';
  $params = array(
    $nid,
  );
  $result = _eloqua_select_query($sql, $params, array(
    ELOQUA_QUERY_OPTION_UNSERIALIZE_DATA => TRUE,
  ));
  return $result;
}