You are here

function message_message_process in Message 6

Provide defaults for a message plugin.

1 string reference to 'message_message_process'
message_ctools_plugin_plugins in ./message.module
Implementation of hook_ctools_plugin_*.

File

./message.module, line 153
API functions to manipulate messages.

Code

function message_message_process(&$plugin, $info) {
  $plugin += array(
    'realm' => FALSE,
    'title' => $plugin['name'],
    'description' => '',
    'views' => array(
      // Optional callback for views handlers.
      'handlers callback' => function_exists("{$plugin['name']}_views_handlers") ? "{$plugin['name']}_views_handlers" : FALSE,
      // Optional callback for views data.
      'data callback' => function_exists("{$plugin['name']}_views_data") ? "{$plugin['name']}_views_data" : FALSE,
    ),
    'access' => array(
      'access callback' => function_exists("{$plugin['name']}_access") ? "{$plugin['name']}_access" : 'message_plugin_access',
      'accessible ids callback' => function_exists("{$plugin['name']}_accessible_ids") ? "{$plugin['name']}_accessible_ids" : 'message_plugin_accessible_ids',
    ),
  );
}