I can find a number of example snippets on this site, but I'm struggling to find any documentation on what facilities (variables, functions etc) are available to a snippet. I'm sure that I'm just being blind, but I would greatly appreciate it if someone could point me in the right direction.

Thanks!

Comments

Dublin Drupaller’s picture

Hi Paul,

Try the http://drupaldocs.org/

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

paulbutcher’s picture

Thanks. I've looked at the drupaldocs site, but the bit of information that I'm missing is exactly how that relates to PHP snippets. Is it the case that I can call *any* function from a snippet (I doubt that I can?) What kind of context is set up before a snippet is called?

What I'm really after is the "10000 foot view" of PHP Snippets. Something to give me the lie of the land so that I can then understand what drupaldocs is telling me.

Is there something like this out there?