You are here

function ctools_export_ui_task_access in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 ctools.module \ctools_export_ui_task_access()

Menu access callback for various tasks of export-ui.

1 string reference to 'ctools_export_ui_task_access'
ctools_export_ui_process in includes/export-ui.inc
Process an export-ui plugin to provide it with defaults.

File

./ctools.module, line 709
CTools primary module file.

Code

function ctools_export_ui_task_access($plugin_name, $op, $item = NULL) {
  ctools_include('export-ui');
  $plugin = ctools_get_export_ui($plugin_name);
  $handler = ctools_export_ui_get_handler($plugin);
  if ($handler) {
    return $handler
      ->access($op, $item);
  }

  // Deny access if the handler cannot be found.
  return FALSE;
}