How do I use theme preprocessor functions for my own templates?

For a general overview, you should read up on manipulating variables within preprocess functions. Concerning the naming convention, this is normally pretty simple, but there is a catch for your current example (see below): A preprocess functions signature needs to be [yourModuleName|yourThemeName]_preprocess_[themeFunctionName](&$variables) so implementing one for the page template within a themes template.php file would … Read more

Drupal behaviors

Long version: Drupal.behaviors is not simply a replacement for jQuery.ready since the latter only runs once (when DOM is ready for manipulation): behaviors can be fired multiple times during page execution and can be run whenever new DOM elements are inserted into the document. Also, modules could override or extend an existing behavior (e.g. if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)