1

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.

DarkAjax
  • 15,955
  • 11
  • 53
  • 65
Questioner
  • 225
  • 4
  • 10

2 Answers2

2

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

Claudio
  • 5,740
  • 5
  • 33
  • 40
0

The name given to the parameters doesn't make any difference, but the name that is usually used is the one reported in the documentation.

As reported in the documentation for theme(), the preprocess functions are invoked before the process functions.

apaderno
  • 28,547
  • 16
  • 75
  • 90