Drupal
How you build a Drupal site will greatly depend on your personal preference or the preference of your boss/client.
A favourite debate between other developers and myself is if it's better to:
start with a pre-made theme and then fight it to remove all of the things you don't want it to do, or…
Once the site files have been uploaded either by the 'one click install', or by the manual approach, you're left with the default theme and settings. I chose 'Standard' set-up, so here are the next steps...
This can often be tricky as you've probably done a variety of things (like tick the HTML box of the SMTP module), and it's still not working...
Steve Burge from OSTraining has written a great walkthrough of how to use Mimemail and Mailsystem to achieve the desired results...
http://www.ostraining…
This is one of those annoying issues you come across from time to time... You know the type... You know there's an issue, but can't quite place it...
In this case, I needed to use the SMTP module as the normal site emails were getting caught by the company spam filters... so appeared not to be…
I often get asked this question.... so here is my answer....
Most have been pulled from other sites, and links to those sites have been included... The last section are my own personal thoughts...
Here are some ‘points’ with explanations I’ve pulled from, http://www.volacci.com/blog/ben-finklea/…
Recently I had to redirect users to the home page, and although I can do this with the 'Rules' module, I also wanted to add something to the $_SESSION for some custom code...
After a little digging I found this: http://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook_user_login/7…
Similar to another post aimed at using a different page.tpl.php for a certain content type, sometimes I've needed to call in the node via an iframe or similar, so I really need a different html.tpl.php for a certain content type...
I've laid the content out in a similar way to the other post…
I'm always a little cautious when updating modules, so I tend to download and unpack the new modules into a 'workings' folder rather than the 'modules' folder... Then I make sure I have downloaded the current (now out of date) module from the server using FTP so I have all of the files that are…
For every settings page you'll need to use the Form API to allow the user to add/edit the configuration values. This is a simple example of the form and the submit function.
/**
* Form builder: Create and display the configuration settings form.
*/
function MY_MODULE_NAME_form($form, &$…
Adding a module configuration or settings page to the main Drupal menu is an important task and I like to add a page for each module I build...
Even if it's more of a 'help' page to explain what the module does or how to use it.
Adding one page is fairly simple....
/**
* Impliment hook_menu…