You are here

function entityqueue_queue_access in Entityqueue 7

Menu access callback.

1 call to entityqueue_queue_access()
entityqueue_export_ui::list_build_row in plugins/ctools/export_ui/entityqueue_export_ui.class.php
Overrides ctools_export_ui::list_build_row().
2 string references to 'entityqueue_queue_access'
entityqueue_entityqueue_export_ui_ctools_export_ui in plugins/ctools/export_ui/entityqueue_export_ui.inc
Implements HOOK_PLUGIN_ctools_export_ui().
entityqueue_entity_info in ./entityqueue.module
Implements hook_entity_info().

File

./entityqueue.module, line 491
Allows users to collect entities in arbitrarily ordered lists.

Code

function entityqueue_queue_access($op, $queue) {
  if (is_object($queue) && $queue instanceof EntityQueue) {
    $queue_name = $queue->name;
  }
  elseif (is_string($queue)) {
    $queue_name = $queue;
  }
  else {
    return;
  }
  $stub = (object) array(
    'queue' => $queue_name,
  );
  return entity_access($op, 'entityqueue_subqueue', $stub);
}