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));
}
Independent selection of view mode for pane giving a lot of flexibility.
Linking media content to drupal internal paths or external urls.
(For image content) built in overlay feature for picture annotation.
Innitial Configuration
Before starting to use this module you need to configure file type display (admin/structure/file-types). Choose the file type (eg. Images) and configure the display for the different display modes (eg. Default -> Images -> Large, Preview -> Image -> square_thumbnail, etc.). Now when you choose a view mode on the media pane, the media will be displayed as you just configured it.
Demonstration
For a demonstration of how easy it is to use the Media Pane module with the Panels In Place Editor here is a demo video (no sound) : http://www.youtube.com/watch?v=-GNPruNYDrg