Menu

Monthly Archives: October 2011

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) {…

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…

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…