function drush_set_context

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

Set a specific context.

Parameters

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.

21 calls to drush_set_context()
drush_backend_set_result in includes/backend.inc
drush_bootstrap in includes/environment.inc
Bootstrap Drush to the desired phase.
drush_bootstrap_error in includes/environment.inc
Helper function to collect any errors that occur during the bootstrap process. Always returns FALSE, for convenience.
drush_bootstrap_validate in includes/environment.inc
Validate whether a bootstrap phases can be reached.
drush_drupal_cache_clear_all in includes/drush.inc

... See full list

File

includes/context.inc, line 250
The Drush context API implementation.

Code

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