When you use code driven development on websites based on Drupal sometimes you have to create a menu or a menu item programmatically in hook_update_N. The below code snippets show you how to do that in Drupal 7.
Welcome to our blog page. We'd like to share knowledge of the areas that are the most fascinating to us.
Recently, while working on a migration to Drupal I encountered a new problem with Drupal database abstraction layer. It turns out that drupal dynamic select queries do not escape column names. This problem does not touch each database type, but it definitely can be problematic when it comes to mysql
On Debian, Apache installed from repositories has mod_expires turned off by default. This seriously increases server load. So what does mod_expires do? It "controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header"... Let me explain. The module allows apache to inform clients (eg. You browser) about the length of time a particular asset can treat as valid.