Skip to content

Preprocess

sinsunsan edited this page Sep 18, 2012 · 9 revisions

View Preprocess view for drupal 6

http://evolvingweb.ca/story/theming-views-drupal-templates-and-preprocess-functions

View proprocess drupal 7

Preprocess has changed for drupal 7 For view preprocessing, it has special issue describe in this post

http://webpartners.es/en/drupal-7-views-templates-and-preprocess?utm_source=twitterfeed&utm_medium=twitter Here is a code to make the
https://gist.github.com/c094d624442fa44a58a4

Les fonctions de preprocess peuvent être placer dans le template.php du theme.
Ou dans un fichier theme.inc dans le module qui est responsable de template particulier.

Par exemple on peut avoir la structure :
site/all/module/monmodule/theme/theme.inc

For other functions, consider whether or not they really are needed at the presentation layer. If they are not, they can be used in the preprocessor layer. All templates may have an optional preprocess function, named template_preprocess_HOOK. For example, for our forums theme hook above, its preprocess function will be named template_preprocess_forums().

http://drupal.org/node/933976

WIKI by Sébastien Lucas CEO & Funder or Bricks

Clone this wiki locally