Adam 2009-02-09
Documentation » Getg
Gets the value of specified node's field (property)
if(g('type') == 'forum') // Checks if the current node is a forum
mixed g( [string $key = false, mixed $default = false] )
Parameters
- string $key Field (property) name
- mixed $default Default value to return if the specified property does not exist
Returns
- mixed Value of specified property, or default value if it does not exist
