Search code examples
drupaldrupal-7drupal-themingdrupal-themes

$variables Vs. $vars


What is the difference between

function mythemes_preprocess_node(&$variables) { ... }

and

function mythemes_preprocess_node(&$vars) { ... }

in drupal 7. and what is the difference between preprocess and process functions. thanks.


Solution

  • There are no differences. The name of the argument variable is up to the function writer. You can call it $foobar, if you like :)