You are here

function message_plugin_access in Message 6

1 string reference to 'message_plugin_access'
message_message_process in ./message.module
Provide defaults for a message plugin.

File

plugins/message/message_plugin.inc, line 9

Code

function message_plugin_access($plugin, $message_instance, $realm_ids, $account) {
  $access = FALSE;
  if ($plugin['realm'] && $realm_ids && ($accessibale_ids = call_user_func($plugin['access']['accessible ids callback'], $account))) {
    $access = array_intersect($accessibale_ids, $realm_ids);
  }
  return $access;
}