You are here

function google_adwords_load_params in Google AdWords Conversion Tracking 6

Load Google AdWords parameters for a node.

1 call to google_adwords_load_params()
google_adwords_nodeapi in ./google_adwords.module
Implementation of hook_nodeapi().

File

./google_adwords.module, line 133

Code

function google_adwords_load_params($node) {
  if ($node->vid) {
    $result = db_fetch_array(db_query('SELECT * FROM {google_adwords} WHERE vid = %d', $node->vid));
    $adwords = array(
      'enabled' => $result['enabled'],
      'label' => $result['label'],
      'format' => $result['format'],
      'color' => $result['color'],
    );
    return $adwords;
  }
  else {
    return array();
  }
}