Today I can across an interesting change in the way Drupal 7 handles blocks created via modules. In a module I made, I defined a block using the hook_block_info and hook_block_view. This block was added to the site’s front page. After some implementation details changed it became apparent that the current block was not what [...]
Disclaimer: This method will probably not work for all servers running tomcat, it is more a personal guide then a general one. Solr is a “popular, blazing fast open source enterprise search platform from the Apache Lucene project”. Drupal search has traditionally been less then adequate. Using Solr to index and search you Drupal site [...]
Drupal saves its sessions in the sessions table. One can always query they table to get the session ID. There is however a faster way. If the user is logged it, the session id can be found with the following code: global $user; $user->sid; In any case the session id can also be read from [...]
Form theming in drupal 6 is quite flexible. One of the nicest tricks is the ability to theme the form in stages. Calling drupal_render on a part of the form will not only return the rendered version of it, but it will also mark that part as rendered so that when you call the final [...]
Drupal, like most CMSes uses cache intensively to speed things up. In a production site that is exactly what you what. However when developing, cache can cause you much pain. If your an expert in drupal you probably already realized when you need to clear the cache in order to see changes and when not [...]