function drush_unset_option

8.0.x context.inc drush_unset_option($option, $context = NULL)
6.x context.inc drush_unset_option($option, $context = NULL)
7.x context.inc drush_unset_option($option, $context = NULL)
3.x context.inc drush_unset_option($option, $context = NULL)
4.x context.inc drush_unset_option($option, $context = NULL)
5.x context.inc drush_unset_option($option, $context = NULL)
master context.inc drush_unset_option($option, $context = NULL)

Remove a setting from a specific context.

Parameters

Option to be unset:

Context in which to unset the value in.:

3 calls to drush_unset_option()
drush_command_set_command_specific in includes/command.inc
drush_core_quick_drupal in commands/core/core.drush.inc
Callback for core-quick-drupal command.
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.

File

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

Code

function drush_unset_option($option, $context = NULL) {
  if ($context != NULL) {
    $cache = &drush_get_context($context);
    if (array_key_exists($option, $cache)) {
      unset($cache[$option]);
    }
  }
  else {
    $contexts = drush_context_names();

    foreach ($contexts as $context) {
      drush_unset_option($option, $context);
    }
  }
}