Drupal
This snippet will select Webform (Webform module) submitted data between a given date range. In this case, that date range is between 2009-06-04 and 2009-07-07.
The UNIX_TIMESTAMP function converts the date into a Unix Timestamp. This is because the value of submitted is in Unix Timestamp format.
It is often useful to add a "edit this node" or "edit this block" if a site editor is viewing content on a page that is not the node page itself. This includings viewing content from a "view" page where the normal edit tabs are not present for nodes or blocks.
This week I attended the Drupal for Publishers event that was held at the Sun Microsystems office in central London. As the name suggests, the event was aimed squarely at publishers. I work for the UK's biggest magazine publisher, so I thought I should attend! I was not disappointed.
2Bits has a great piece of advise when it comes to extending Drupal. A very common trap is just keep on adding more and more modules to achieve the required functionality. That is what makes Drupal great but at the same time, too many modules can have a seriously negative effect on a sites performance.
Creating an effective deployment process has historically been a nightmare with Drupal. A deployment process should include pushing content and configuration settings (and code) from dev server to stage server to live server. In many cases, pushing content from live server back to stage server will also be required (to test on the stage server with real life content).
See Demonstration of Drupal deploy module VideoFrom time to time a user may not be able to edit a Drupal node and you end up tearing your hair out trying to figure out why. Sometimes the solution is obvious, and sometimes it is not. This post will take you through some of the main reasons for the problem along with suggested solutions.
This snippet should be added in a block under "block visibility". "Show if the following PHP code returns TRUE" should be selected.
Use this snippet to find the URL alias for a node by looking it up in the url_alias table by its node ID.
This will checkout a Drupal contrib module.
-d module_name is the name of the folder that it will be added to (put in path if necessary)
DRUPAL-5--X-X - This should be the version of the module. For example, if the latest stable version is 5.x-1.4, then change this to DRUPAL-5--1-4
contributions/modules/module_name - change module_name to the module name
This will update the code base to Drupal 6.10. Change to what ever version you want.
