Closed (fixed)
Project:
DFP Small Business (Google Ad Manager)
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2008 at 22:11 UTC
Updated:
6 Dec 2008 at 00:15 UTC
In the comments in google_admanager.module on line 110, the module says
This function should be called from pianofiles_preprocess_page(&$vars) as followed
But the README.txt that comes with the module says to use...
function _phptemplate_variables($hook, $vars)
The module should say "phptemplate_preprocess" instead of "pianofiles_preprocess". Suggested revision for README.txt follows:
4. Add the following code into your theme's template.php file. (If phptemplate_preprocess_page(&$vars) already exists, copy the four lines starting with "// Insert Google..." into the function.)
function phptemplate_preprocess_page(&$vars) {
// Insert Google Ad Manager scripts into header
if (module_exists('google_admanager')) {
$vars['scripts'] .= google_admanager_add_js();
}
}
Comments
Comment #1
toemaz commentedThx!!