-
My first Contrib module: Comment IP
My first contrib module. If you suffer comment spam from persistent sources, then this module might be useful to you!
-
Drupal Form #states inverting for 'checked' => TRUE
I was recently working on a site where I wanted to use the '#states' key in a form using the Drupal 7 Form API. If you haven't come across this yet its a great way to only show a field depending on a certain set of circumstances.
-
How to create a multi-step form in Drupal 7
How to create a simple multi-step form in Drupal 7, with forward and backwards navigation, per-step validation, and how to retain values between steps.
-
Programmatically add checkbox field to a node type in Drupal 7
How to add a field to a content type programatically, using the field_create_field() and field_create_instance() functions.
-
Drupal 7 URL's not directing to subdirectory
How I made a basic mistake which lead to all of my URL's pointing at the base directory.
-
Saving fields with user_save()
How to save the value of a field on a user, programatically.
-
global $user vs user_load()
Whats the difference between global $user and user_load()?