Ten Step-by-Step Code Samples for Learning Form API

https://www.drupal.org/node/262422

Programmatically add/update users using user_save() in Drupal

https://www.drupal.org/node/1969192

Advertisements