You are here

function webform_node_value_configuration_get in Webform Node Value 7

Get the webform_node_value configuration for a webform

Parameters

$nid:

Return value

object

3 calls to webform_node_value_configuration_get()
webform_node_value_client_submit in ./webform_node_value.module
Submit callback for the client form. Fetch node field value and insert it in Webform field.
webform_node_value_configuration_form in ./webform_node_value.module
Add our configuration options to the Webform settings form.
webform_node_value_form_alter in ./webform_node_value.module
Implements hook_form_alter().

File

./webform_node_value.module, line 245

Code

function webform_node_value_configuration_get($nid) {
  $configuration = db_query_range('SELECT * FROM {webform_node_value} WHERE nid = :nid', 0, 1, array(
    ':nid' => $nid,
  ))
    ->fetchObject();
  return $configuration;
}