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

How to insert a block into a node or template in Drupal 7?

D7: <?php $block = module_invoke(‘module_name’, ‘block_view’, ‘block_delta’); print render($block[‘content’]); ?> ‘module_name’ = The machine name of the module (i.e. the module’s folder name). This is true for core modules too, so for instance ‘search’, ‘user’ and ‘comment’ would all work here. ‘block_delta’ = The machine name of the block. You can determine what this is … Read more

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