function ctools_context_create

cis7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)
cle7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)
elmsmedia7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)
icor7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)
meedjum_blog7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)
mooc7 context.inc ctools_context_create($type, $data = NULL, $conf = FALSE)

Create a new context object.

Parameters

$type: The type of context to create; this loads a plugin.

$data: The data to put into the context.

$empty: Whether or not this context is specifically empty.

$conf: A configuration structure if this context was created via UI.

Return value

A $context or NULL if one could not be created.

33 calls to ctools_context_create()
ctools_access_get_loggedin_context in sites/all/modules/ulmus/ctools/includes/context.inc
Create a context for the logged in user.
ctools_ajax_simple_form in sites/all/modules/ulmus/ctools/ctools_ajax_sample/ctools_ajax_sample.module
ctools_argument_entity_id_context in sites/all/modules/ulmus/ctools/plugins/arguments/entity_id.inc
Discover if this argument gives us the entity we crave.
ctools_argument_nid_context in sites/all/modules/ulmus/ctools/plugins/arguments/nid.inc
Discover if this argument gives us the node we crave.
ctools_argument_rid_context in sites/all/modules/ulmus/ctools/plugins/arguments/rid.inc
Discover if this argument gives us the node we crave.

... See full list

File

sites/all/modules/ulmus/ctools/includes/context.inc, line 595
Contains code related to the ctools system of 'context'.

Code

function ctools_context_create($type, $data = NULL, $conf = FALSE) {
  ctools_include('plugins');
  $plugin = ctools_get_context($type);

  if ($function = ctools_plugin_get_function($plugin, 'context')) {
    return $function(FALSE, $data, $conf, $plugin);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.