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.

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

... See full list


includes/, line 250
The Drush context API implementation.


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