Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
What is it?
The module "Doctor" is "listening" to a doctor listen item that create during your module actions.
How does it work?
The doctor create an entity called doctor. When running the drush command drush doctor-listen(AKA dols), the module will wait for a doctor entity entry to create and will present the data on the CLI. If there any items that created when the doctor did not listen, the next time the you initialized the command, they will be displayed for in the CLI.
/**
* Implements hook_node_insert().
*/
function doctor_example_node_insert($node) {
doctor_create(
array(
'wrapper' => entity_metadata_wrapper('node', $node),
)
)->save();
}
/**
* Doctor listener callback function.
*
* @param $data
* The un-serialized data listener item.
*/
function doctor_example_doctor_listener_callback($data) {
$wrapper = $data['wrapper'];
$params = array(
'@title' => $wrapper->label(),
'@user' => $wrapper->author->label(),
);
drush_print(dt('The user @user posted a node with the title: @title', $params));
}
User Create By Role is a very simple module that is meant to simplify creation of user accounts. All it does is add additional action links in addition to "Add user" for each role.