It's from Front End Drupal, pg114, first printing. I've already checked their errata. I'm keeping getting an error for one particular line (noted below):
function blueprint_preprocess_page (&$variables) {
// Add a "go home" button to page.tpl.php
if ($variables['logged_in'] == TRUE && $variables['is_front'] == FALSE) {
$image_path = $variables['directory'] . "/images/go_home.jpg";
$image_text = t("Go Home");
$image = theme('image', $image_path, $image_text, $image_text);
$variables['go_home'] = 1($image, "", array('html'=> TRUE)); //This line receives the error
}
}
Now there may be other issues involved but I just want to double check about whether or not I'm missing a glaring error. Thanks.
Comments
Link function?
1($image, "", array('html'=> TRUE));That looks like the digit one '1', instead of a lowercase 'L' for the drupal link - l() - function. Although it would help if you said what the error message was...
Parse error: syntax error,
Parse error: syntax error, unexpected '(' in /home/estevan/public_html/drupal/themes/blueprint/template.php on line 436
That was the error. Thanks. I'm still noobish. Admittedly, the '1' seemed strange to me. Courier 'l' must look too much like Courier '1'.