function drush_set_context

8.0.x drush_set_context($context, $value)
6.x drush_set_context($context, $value)
7.x drush_set_context($context, $value)
3.x drush_set_context($context, $value)
4.x drush_set_context($context, $value)
5.x drush_set_context($context, $value)
master drush_set_context($context, $value)

Set a specific context.


context: Any of the default defined contexts.

value: The value to store in the context

Return value

An associative array of the settings specified in the request context.

67 calls to drush_set_context()
annotationcommand_adapter_cache_module_console_commands in includes/
TODO: document
annotationcommand_adapter_cache_module_service_commands in includes/
TODO: document
annotationcommand_adapter_discover in includes/
Search for annotation commands at the provided search path.
commandUnitCase::testCommandVersionSpecific in tests/commandUnitTest.php
Assure that matching version-specific command files are loaded and others are ignored.
DrupalBoot::bootstrap_do_drupal_site in lib/Drush/Boot/DrupalBoot.php
Called by bootstrap_drupal_site to do the main work of the drush drupal site bootstrap.

... See full list


includes/, line 293
The Drush context API implementation.


function drush_set_context($context, $value) {
  $cache = &drush_get_context($context);
  $cache = $value;
  return $value;