Library

03 09 2008 : Use hook_requirements to help admins find and install 3rd party code

A handy snippet for module developers that use external libraries. Drupal discourages inclusion of such libraries in modules, for good reasons. This, however, makes is hard for admins to install your module. I used hook_requirements to point out how, why and where a certain library can be found.

screeenshot of the help
The admin is then helped with usefull messages: how to fix the problem.


17 05 2005 : Autmatic add or remove files to an SVN repository

When you have added or removed a lot of fiels and directories in a local reopsitory, it can be a hard task to add them all by hand. These two small scripts help with adding or removing any files that were added or removed in the local repository. But use with care.

Add all local added files and directories from the repository.

#!/bin/bash
svn add  `svn st | grep '^?.*' | tr -d '? ' | sort -n | tr '\n' ' '`

Remove all local deleted files and directories from the repository.

#!/bin/bash
svn rm `svn st | grep '^!.*' | tr -d '! ' | sort -n | tr '\n' ' '`

After that you still need to run


17 05 2005 : Your new drupal site, now what?

You received your own website in the webschuur. That is cool, but what now? how to proceed?

Here is a summary, (change example.com into your own domain, off course).

Create the root account, the first account you create is automagically made root. example.com/?q=user/register note down the password in a safe place, but you will receive a mail too.

Create some new users at example.com/?q=admin/user/create

Create a few roles, at least create a role called administrator. example.com/?q=admin/access/roles

Put the users in the correct roles by editing the one by one @ example.com/?q=admin/user/