You are here

function ctools_get_access_plugin in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context.inc \ctools_get_access_plugin()

Fetch metadata on a specific access control plugin.

Parameters

$name: Name of a plugin.

Return value

array An array with information about the requested access control plugin.

7 calls to ctools_get_access_plugin()
ctools_access in includes/context.inc
Determine if the current user has access via a plugin.
ctools_access_add_restrictions in includes/context.inc
Apply restrictions to contexts based upon the access control configured.
ctools_access_admin_render_table in includes/context-access-admin.inc
Render the table. This is used both to render it initially and to rerender it upon ajax response.
ctools_access_ajax_add in includes/context-access-admin.inc
AJAX callback to add a new access test to the list.
ctools_access_ajax_edit in includes/context-access-admin.inc
AJAX callback to edit an access test in the list.

... See full list

File

includes/context.inc, line 1807
Contains code related to the ctools system of 'context'.

Code

function ctools_get_access_plugin($name) {
  ctools_include('plugins');
  return ctools_get_plugins('ctools', 'access', $name);
}