function google_adwords_nodeapi in Google AdWords Conversion Tracking 6
Implementation of hook_nodeapi().
File
- ./
google_adwords.module, line 103
Code
function google_adwords_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'load':
$adwords = google_adwords_load_params($node);
if (count($adwords) > 0) {
$fields['google_adwords'] = $adwords;
return $fields;
}
break;
case 'insert':
case 'update':
if (isset($node->google_adwords)) {
google_adwords_save_adwords($node);
}
break;
case 'delete':
google_adwords_delete_adwords($node);
break;
case 'delete revision':
google_adwords_delete_adwords_revision($node);
break;
}
}