theming

Drupal 6 equivalent of stylesheets-override[]

  1. function phptemplate_preprocess_page(&$vars) {
  2.   // Override system.css with theme version, but keep its position.
  3.   // So much to stylesheets-override[] .info property being needless...
  4.   // @see

Fix for Example of overriding the user_login_block form

  1. <?php // In template.php
  2. /**
  3.  * Preprocess function for  user_login_block form.
  4.  */
  5. function mytheme_preprocess_user_login_block(&$vars) {
  6.   // change the text for the sign in button
  7.   $vars['fo

Fix for trying to add a new variable to my page.tpl.php

  1. //this is inside my template.php file
  2. // removing a superfluous [] fixed it.
  3. function mytheme_preprocess_page(&$variables) {
  4.         $variables['bg_img']= 'http://gocompost.localhost/sites/all/themes/jonn

trying to add a new variable to my page.tpl.php

  1. //this is inside my template.php file
  2.  
  3. function mytheme_preprocess_page(&$variables) {
  4.         $variables['bg_img'][]= 'http://gocompost.localhost/sites/all/themes/jonny/css/cath.jpg';      
  5.        
  6.         }

dpm and node object error

  1. My code:
  2.  
  3. function fashion_preprocess_node(&$variables) {
  4.   dpm($variables);
  5. }
  6.  
  7. And the error:
  8.  
  9. Uncaught exception thrown in session handler.
  10.  
  11. PDOException: SQLSTATE[HY000]: General error:

Fix for Custom Company Info for Theming

  1. <?php
  2. // $Id:
  3.  
  4. function system_custom_menu() {
  5.        
  6.         $items = array();
  7.        
  8.         $items['admin/settings/site-additional-info'] = array(
  9.                 'title' => t('Additional Site Information'),
  10.                 'page callback'

Fix for Custom Company Info for Theming

  1. <?php
  2. // $Id:
  3.  
  4. function system_custom_menu() {
  5.        
  6.         $items = array();
  7.        
  8.         $items['admin/settings/site-additional-info'] = array(
  9.                 'title' => t('Additional Site Information'),
  10.                 'page callback'

Custom Company Info for Theming

  1. <?php
  2. // $Id:
  3.  
  4. function system_custom_menu() {
  5.        
  6.         $items = array();
  7.        
  8.         $items['admin/settings/site-additional-info'] = array(
  9.                 'title' => t('Additional Site Information'),
  10.                 'page callback'

Fix for www.afrixml.net/greengas page-tpl.php

  1. <?php
  2.  
  3. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language

www.afrixml.net/greengas page-tpl.php

  1. <?php
  2.  
  3. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language
Syndicate content