Drupal 7: PHP snippet to add users from a list

Here is a very crude PHP snippet that can be used to add a list of users to a Drupal site.

The code can be added to a Drupal block with content type "PHP Code", which is then added to some page and made visible only to the site administrator (using e.g. the `roles' tab on the block configuration page).

Subscribe to RSS - drupal