function hook_ctools_render_alter

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)
cle7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)
elmsmedia7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)
icor7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)
meedjum_blog7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)
mooc7 ctools.api.php hook_ctools_render_alter(&$info, &$page, &$context)

Alter everything.

Parameters

$info: An associative array containing the following keys:

  • content: The rendered content.
  • title: The content's title.
  • no_blocks: A boolean to decide if blocks should be displayed.

$page: If TRUE then this renderer owns the page and can use theme('page') for no blocks; if false, output is returned regardless of any no blocks settings.

$context: An associative array containing the following keys:

  • args: The raw arguments behind the contexts.
  • contexts: The context objects in use.
  • task: The task object in use.
  • subtask: The subtask object in use.
  • handler: The handler object in use.

Related topics

1 function implements hook_ctools_render_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

context_ctools_render_alter in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_ctools_render_alter(). Used to detect the presence of a page manager node view or node form.
1 invocation of hook_ctools_render_alter()
ctools_context_handler_render_handler in sites/all/modules/ulmus/ctools/includes/context-task-handler.inc
Render a task handler.

File

sites/all/modules/ulmus/ctools/ctools.api.php, line 185
Hooks provided by the Chaos Tool Suite.

Code

function hook_ctools_render_alter(&$info, &$page, &$context) {
  if ($context['handler']->name == 'my_handler') {
    ctools_add_css('my_module.theme', 'my_module');
  }
}
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.