You are here

function ctools_get_contexts in Chaos Tool Suite (ctools) 6

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

Fetch metadata for all context plugins.

Return value

An array of arrays with information about all available panel contexts.

4 calls to ctools_get_contexts()
ctools_context_add_context_form in includes/context-admin.inc
ctools_context_add_required_context_form in includes/context-admin.inc
ctools_context_admin_includes in includes/context-admin.inc
Include all context administrative include files, css, javascript.
ctools_context_get_all_converters in includes/context.inc
Get a list of all contexts + converters available.

File

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

Code

function ctools_get_contexts() {
  ctools_include('plugins');
  return ctools_get_plugins('ctools', 'contexts');
}