Managing globals with the registry pattern. This class provides lazy loading functionallity. This means it is possible to add a callback or class (with arguments) which will be called or instanciated when it is being used for the first time.
[code]
<?php/**... Read More »
This simply php function will retrieve the links of the images from Google Images searched with a keyword. The function just calls images.google.it and parse the html to find the url of the images, in this case the urls are stored in the javascript, so the parsing doesn’t use any html tag to find data. It builds an array of urls and return it.
[code]
function... Read More »
Needs to execute before theme is initialized -- Ideally in hookinit() -- but also works in hooknodeapi $op == 'view'
[code]
global $custom_theme;$custom_theme = variable_get(... Read More »