Monthly Archives: October 2011

Drupal 7: disable email field on user profile form

Let’s say you don’t want your users, once they are registered, to change their email address. You can use hook_form_alter to disable the email field in the user’s account page. /**  * Implements hook_form_alter().  */ function mymodule_form_user_profile_form_alter(&$form, &$form_state, $form_id) {

Posted in drupal

Kasabi: NHS data

More fun with Kasabi and an update to my original post from the Open Government Hackday back in August 2011, and the subsequent Culture Hack day. The NHS have published a lot of information in Open Data formats, and some

Posted in kasabi, portfolio

Drupal 7: hide field content from anonymous users

Two approaches to hiding the content of a field to non-members of your website. Approach #1: Do it in a module. Approach #2: Use field templates in your theme. Approach #2 is more sophisticated and elegant and gives you the

Posted in drupal