Drush: includes/context.inc File Reference

  1. 7.x doxygen/html/context_8inc.html
  2. master doxygen/html/context_8inc.html
context.inc File Reference

Go to the source code of this file.

Functions

 drush_context_names ()
 _drush_config_file ($context, $prefix=NULL, $version= '')
 drush_load_config ($context)
 drush_load_config_file ($context, $config_list)
 drush_set_config_options ($context, $options, $override=array())
 drush_expand_short_form_options (&$options)
 drush_set_config_special_contexts (&$options)
 drush_set_context ($context, $value)
drush_get_context ($context=NULL, $default=NULL)
 drush_set_arguments ($arguments)
 drush_get_arguments ()
 drush_set_command ($command)
 drush_get_command ()
 drush_get_option ($option, $default=NULL, $context=NULL)
 drush_get_option_list ($option, $default=array(), $context=NULL)
 drush_get_option_override ($option_overrides, $option, $default=NULL, $context=NULL)
 drush_sitealias_get_option ($site_alias_record, $option, $default=NULL, $prefix= '', $context=NULL)
 drush_get_context_options ($option, $flatten=FALSE)
 drush_get_merged_options ()
 drush_get_merged_prefixed_options ($prefix)
 _drush_get_option ($option, $context)
 drush_set_option ($option, $value, $context= 'process')
 drush_set_default ($option, $value)
 drush_unset_option ($option, $context=NULL)
 drush_save_config ($context)

Detailed Description

The Drush context API implementation.

This API acts as a storage mechanism for all options, arguments and configuration settings that are loaded into drush.

This API also acts as an IPC mechanism between the different drush commands, and provides protection from accidentally overriding settings that are needed by other parts of the system.

It also avoids the necessity to pass references through the command chain and allows the scripts to keep track of whether any settings have changed since the previous execution.

This API defines several contexts that are used by default.

Argument contexts : These contexts are used by Drush to store information on the command. They have their own access functions in the forms of drush_set_arguments(), drush_get_arguments(), drush_set_command(), drush_get_command().

command : The drush command being executed. arguments : Any additional arguments that were specified.

Setting contexts : These contexts store options that have been passed to the drush.php script, either through the use of any of the config files, directly from the command line through –option='value' or through a JSON encoded string passed through the STDIN pipe.

These contexts are accessible through the drush_get_option() and drush_set_option() functions. See drush_context_names() for a description of all of the contexts.

Drush commands may also choose to save settings for a specific context to the matching configuration file through the drush_save_config() function.

Definition in file context.inc.

Function Documentation

_drush_config_file (   $context,
  $prefix = NULL,
  $version = '' 
)

Return a list of possible drushrc file locations.

A valid drush context from drush_context_names(). Optional. Specify a prefix to prepend to ".drushrc.php" when looking for config files. Most likely used by contrib commands.

Returns
An associative array containing possible config files to load The keys are the 'context' of the files, the values are the file system locations.

Definition at line 96 of file context.inc.

References drush_get_context(), and drush_server_home().

Referenced by drush_load_config(), and drush_save_config().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_get_option (   $option,
  $context 
)

Helper function to recurse through possible option names

Definition at line 562 of file context.inc.

Referenced by drush_get_context_options(), and drush_get_option().

Here is the caller graph for this function:

drush_context_names ( )

Return a list of the valid drush context names.

These context names are carefully ordered from highest to lowest priority.

These contexts are evaluated in a certain order, and the highest priority value is returned by default from drush_get_option. This allows scripts to check whether an option was different before the current execution.

Specified by the script itself : process : Generated in the current process. cli : Passed as –option=value to the command line. stdin : Passed as a JSON encoded string through stdin. specific : Defined in a command-specific option record, and set in the command context whenever that command is used. alias : Defined in an alias record, and set in the alias context whenever that alias is used.

Specified by config files : custom : Loaded from the config file specified by –config or -c site : Loaded from the drushrc.php file in the Drupal site directory. drupal : Loaded from the drushrc.php file in the Drupal root directory. user : Loaded from the drushrc.php file in the user's home directory. home.drush Loaded from the drushrc.php file in the $HOME/.drush directory. system : Loaded from the drushrc.php file in the system's $PREFIX/etc/drush directory. drush : Loaded from the drushrc.php file in the same directory as drush.php.

Specified by the script, but has the lowest priority : default : The script might provide some sensible defaults during init.

Definition at line 74 of file context.inc.

Referenced by drush_get_context_options(), drush_get_merged_options(), drush_get_option(), and drush_unset_option().

Here is the caller graph for this function:

drush_expand_short_form_options ( $options)

For all global options with a short form, convert all options in the option array that use the short form into the long form.

Definition at line 197 of file context.inc.

References drush_get_global_options().

Referenced by drush_preflight_command_dispatch(), and drush_set_config_special_contexts().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_arguments ( )

Gets the command line arguments passed to Drush.

Returns
array An indexed array of arguments. Until Drush has dispatched the command, the array will include the command name as the first element. After that point the array will not include the command name.
See Also
drush_set_arguments()

Definition at line 366 of file context.inc.

References drush_get_context().

Referenced by drush_early_complete(), drush_parse_command(), drush_preflight_command_dispatch(), drush_shell_alias_replace(), drush_shift(), and drush_sitealias_check_arg().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_command ( )

Return the command being executed.

Definition at line 387 of file context.inc.

References drush_get_context().

Referenced by _drush_sitealias_user_specified_list(), drush_command(), drush_get_original_cli_args_and_options(), drush_notify_shutdown_error(), drush_set_default_outputformat(), notify_drush_exit(), and usage_drush_exit().

Here is the call graph for this function:

Here is the caller graph for this function:

& drush_get_context (   $context = NULL,
  $default = NULL 
)

Return a specific context, or the whole context cache

This function provides a storage mechanism for any information the currently running process might need to communicate.

This avoids the use of globals, and constants.

Functions that operate on the context cache, can retrieve a reference to the context cache using : $cache = &drush_get_context($context);

This is a private function, because it is meant as an internal generalized API for writing static cache functions, not as a general purpose function to be used inside commands.

Code that modifies the reference directly might have unexpected consequences, such as modifying the arguments after they have already been parsed and dispatched to the callbacks.

Parameters
contextOptional. Any of the default defined contexts.
Returns
If context is not supplied, the entire context cache will be returned. Otherwise only the requested context will be returned. If the context does not exist yet, it will be initialized to an empty array.

Definition at line 328 of file context.inc.

Referenced by _drush_backend_get_global_contexts(), _drush_backend_integrate(), _drush_backend_invoke(), _drush_bootstrap_do_drupal_site(), _drush_bootstrap_drupal_full(), _drush_bootstrap_drupal_root_validate(), _drush_bootstrap_selected_uri(), _drush_config_file(), _drush_find_local_sites_at_root(), _drush_pm_extension_cache_file(), _drush_preflight_base_environment(), _drush_print_config_changes_table(), _drush_print_log(), _drush_shell_exec(), _drush_sitealias_alias_list(), _drush_sitealias_cache_alias(), _drush_sitealias_find_and_load_alias(), _drush_sitealias_find_and_load_all_aliases(), _drush_sitealias_find_local_alias_name(), _drush_sitealias_find_record_for_local_site(), _drush_sitealias_get_record(), _drush_sitealias_site_list(), _drush_sql_get_post_sync_messages(), _drush_sync_via_http_download_file(), _drush_verify_cli_options(), _pm_download_destination(), _pm_update_core(), docs_drush_command(), druplicon_drush_exit(), drush_archive_dump(), drush_backend_get_result(), drush_backend_output(), drush_backend_packet(), drush_backend_packet_log(), drush_backend_set_result(), drush_bootstrap(), drush_bootstrap_error(), drush_bootstrap_max(), drush_bootstrap_to_phase(), drush_bootstrap_value(), drush_build_drush_command(), drush_choice(), drush_cid_install_profile(), drush_command_default_options(), drush_commandfile_list(), drush_complete_process_argv(), drush_complete_rebuild(), drush_conf_path(), drush_config_set(), drush_confirm(), drush_core_execute(), drush_core_runserver(), drush_core_shell_alias(), drush_core_updatedb(), drush_coverage_shutdown(), drush_cwd(), drush_do_command_redispatch(), drush_do_multiple_command(), drush_drupal_version(), drush_early_complete(), drush_enforce_requirement_bootstrap_phase(), drush_engine_topic_command(), drush_errors_off(), drush_errors_on(), drush_get_arguments(), drush_get_cid(), drush_get_command(), drush_get_context_options(), drush_get_engine(), drush_get_error(), drush_get_error_log(), drush_get_log(), drush_get_merged_options(), drush_get_option(), drush_get_original_cli_args_and_options(), drush_handle_command_output(), drush_has_boostrapped(), drush_hide_output_fields(), drush_hook_pre_pm_enable(), drush_load_command_engine(), drush_log(), drush_main(), drush_merge_engine_data(), drush_op(), drush_op_system(), drush_parse_args(), drush_pipe_output(), drush_pm_download(), drush_pm_download_validate(), drush_pm_enable(), drush_pm_enable_validate(), drush_pm_post_pm_update(), drush_pm_post_pm_updatecode(), drush_pm_update_lock(), drush_pm_updatecode(), drush_pm_updatecode_rollback(), drush_pm_updatecode_validate(), drush_preflight_backup_dir(), drush_preflight_command_dispatch(), drush_prepare_backup_dir(), drush_print_file(), drush_print_pipe(), drush_process_bootstrap_to_first_arg(), drush_prompt(), drush_redispatch_get_options(), drush_sandwich_make_me_a_sandwich(), drush_save_config(), drush_set_config_special_contexts(), drush_set_context(), drush_set_error(), drush_set_option(), drush_shell_alias_replace(), drush_shell_proc_open(), drush_shift(), drush_shutdown(), drush_site_dir_lookup_from_hostname(), drush_site_path(), drush_sitealias_alias_path(), drush_sitealias_bootstrapped_site_name(), drush_sitealias_create_self_alias(), drush_sitealias_evaluate_path(), drush_sitealias_set_alias_context(), drush_sql_create(), drush_sql_query(), drush_sql_register_post_sync_op(), drush_sql_sanitize(), drush_ssh_site_ssh(), drush_start_browser(), drush_table_column_autowidth(), drush_unset_option(), drush_user_create(), drush_user_login(), drush_user_password(), make_download_git(), make_drush_command(), make_projects(), outputformat_drush_command_alter(), package_handler_download_project(), package_handler_validate(), pm_drush_help(), pm_drush_pm_download_destination_alter(), pm_parse_project_version(), pm_update_packages(), pm_update_project(), drush_outputformat\process(), Drush\Sql\SqlBase\query(), DrushMakeProject\recurse(), shellalias_shell_alias_complete(), updatexml_get_releases_from_xml(), and usage_drush_exit().

drush_get_context_options (   $option,
  $flatten = FALSE 
)

Get all of the values for an option in every context.

Parameters
optionThe name of the option to get
Returns
An array whose key is the context name and value is the specific value for the option in that context.

Definition at line 507 of file context.inc.

References _drush_get_option(), drush_context_names(), and drush_get_context().

Referenced by drush_build_drush_command().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_merged_options ( )

Retrieves a collapsed list of all options.

Definition at line 530 of file context.inc.

References drush_context_names(), and drush_get_context().

Referenced by drush_backend_output(), and drush_get_merged_prefixed_options().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_merged_prefixed_options (   $prefix)

Retrieves a collapsed list of all options with a specified prefix.

Definition at line 547 of file context.inc.

References drush_get_merged_options().

Referenced by drush_sitealias_overlay_options().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_option (   $option,
  $default = NULL,
  $context = NULL 
)

Get the value for an option.

If the first argument is an array, then it checks whether one of the options exists and return the value of the first one found. Useful for allowing both -h and –host-name

Parameters
optionThe name of the option to get
defaultOptional. The value to return if the option has not been set
contextOptional. The context to check for the option. If this is set, only this context will be searched.

Definition at line 405 of file context.inc.

References _drush_get_option(), drush_context_names(), and drush_get_context().

Referenced by _drush_backend_generate_command(), _drush_backend_get_global_contexts(), _drush_bootstrap_drupal_login(), _drush_cache_get_object(), _drush_find_local_sites_at_root(), _drush_invoke_hooks(), _drush_make_generate_get_version_options(), _drush_preflight_root_uri(), _drush_sitealias_prepare_record(), _drush_sitealias_user_specified_list(), _drush_sql_get_raw_table_list(), _drush_verify_cli_options(), _get_working_copy_option(), _make_download_file(), _make_is_override_allowed(), _pm_download_destination(), _pm_update_core(), DrushMakeProject\applyPatches(), Drush\User\UserSingleBase\cancel(), Drush\Sql\SqlBase\connect(), druplicon_drush_exit(), drush_archive_dump(), drush_archive_restore(), drush_build_drush_command(), drush_choice(), drush_command(), drush_complete_cache_cid(), drush_config_edit(), drush_config_export(), drush_config_get_object(), drush_config_import(), drush_config_set(), drush_core_drupal_directory(), drush_core_php_script(), drush_core_quick_drupal(), drush_core_requirements(), drush_core_runserver(), drush_core_status(), drush_do_command_redispatch(), drush_download_file(), drush_early_complete(), drush_error_handler(), drush_format(), drush_get_editor(), drush_get_option_list(), drush_get_user_selected_engine(), drush_handle_command_output(), drush_hook_pre_pm_enable(), drush_main(), drush_make(), drush_make_post_make(), drush_make_process(), drush_migrate_manifest(), drush_notify_allowed(), drush_notify_send(), drush_notify_send_audio(), drush_notify_send_text(), drush_notify_shutdown_error(), drush_os(), drush_parse_command(), drush_pm_download(), drush_pm_download_validate(), drush_pm_enable_validate(), drush_pm_include_version_control(), drush_pm_inject_info_file_metadata(), drush_pm_list(), drush_pm_post_pm_updatecode(), drush_pm_releases(), drush_pm_updatecode(), drush_pm_updatecode_validate(), drush_pm_updatestatus(), drush_policy_updatedb_validate(), drush_preflight(), drush_preflight_backup_dir(), drush_preflight_command_dispatch(), drush_print(), drush_print_format(), drush_process_bootstrap_to_first_arg(), drush_redispatch_get_options(), drush_sandwich_make_me_a_sandwich(), drush_shell_proc_build(), drush_sitealias_get_option(), drush_sitealias_get_path_option(), drush_sitealias_print(), drush_sql_bootstrap_further(), drush_sql_conf(), drush_sql_dump(), drush_sql_get_class(), drush_sql_query(), drush_sql_sanitize(), drush_ssh_site_ssh(), drush_start_browser(), drush_state_set(), drush_sync_enable_post_sql_sync(), drush_sync_via_http_pre_sql_sync(), drush_test_run(), drush_user_cancel(), drush_user_create(), drush_user_login(), drush_user_password(), drush_views_analyze(), drush_views_execute(), drush_views_list(), drush_xkcd_display(), drush_xkcd_fetch(), DrushMakeProject\make(), make_build_path(), make_clean_tmp(), make_download_file(), make_download_git(), make_download_pm(), make_error(), make_generate_from_makefile(), make_move_build(), make_prepare_libraries(), make_prepare_projects(), make_projects(), make_tmp(), package_handler_download_project(), package_handler_post_download(), package_handler_update_project(), package_handler_validate(), pm_parse_project_version(), pm_update_packages(), pm_update_project(), drush_version_control_backup\post_update(), drush_version_control_svn\pre_update(), drush_version_control_backup\pre_update(), drush_outputformat\process(), DrushMakeProject\processGitInfoFiles(), Drush\Sql\SqlBase\query(), DrushMakeProject\recurse(), release_info_print_releasenotes(), drush_version_control_backup\rollback(), drush_version_control_svn\rollback(), simpletest_drush_run_test(), sql_drush_sql_sync_sanitize(), Drush\Sql\SqlBase\su(), system_watchdog(), updatexml_get_release_history_xml(), usage_drush_exit(), xh_drush_init(), and xh_link().

Here is the call graph for this function:

drush_get_option_list (   $option,
  $default = array(),
  $context = NULL 
)

Get the value for an option and return it as a list. If the option in question is passed on the command line, its value should be a comma-separated list (e.g. –flag=1,2,3). If the option was set in a drushrc.php file, then its value may be either a comma-separated list or an array of values (e.g. $option['flag'] = array('1', '2', '3')).

Parameters
optionThe name of the option to get
defaultOptional. The value to return if the option has not been set
contextOptional. The context to check for the option. If this is set, only this context will be searched.

Definition at line 446 of file context.inc.

References drush_get_option().

Referenced by _drush_bootstrap_drupal_configuration(), _make_parse_info_file(), drush_core_requirements(), drush_core_runserver(), drush_filename_blacklist(), drush_handle_command_output(), drush_pm_updatestatus(), drush_sync_enable_post_sql_sync(), and drush_views_list().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_option_override (   $option_overrides,
  $option,
  $default = NULL,
  $context = NULL 
)

Get the value for an option, but first checks the provided option overrides.

The feature of drush_get_option that allows a list of option names to be passed in an array is NOT supported.

Parameters
option_overridesAn array to check for values before calling drush_get_option.
optionThe name of the option to get.
defaultOptional. The value to return if the option has not been set.
contextOptional. The context to check for the option. If this is set, only this context will be searched.

Definition at line 472 of file context.inc.

References drush_sitealias_get_option().

Referenced by _drush_backend_invoke(), drush_invoke_process(), and drush_sitealias_evaluate_path().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_load_config (   $context)

Load drushrc files (if available) from several possible locations.

Definition at line 148 of file context.inc.

References _drush_config_file().

Referenced by _drush_bootstrap_drupal_root(), _drush_bootstrap_drupal_site(), and drush_preflight().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_save_config (   $context)

Save the settings in a specific context to the applicable configuration file This is useful is you want certain settings to be available automatically the next time a command is executed.

Parameters
$contextThe context to save

Definition at line 635 of file context.inc.

References _drush_config_file(), drush_get_context(), drush_log(), drush_set_error(), and dt().

Here is the call graph for this function:

drush_set_arguments (   $arguments)

Set the arguments passed to the drush.php script.

This function will set the 'arguments' context of the current running script.

When initially called by drush_parse_args, the entire list of arguments will be populated. Once the command is dispatched, this will be set to only the remaining arguments to the command (i.e. the command name is removed).

Parameters
argumentsCommand line arguments, as an array.

Definition at line 352 of file context.inc.

References drush_set_context().

Referenced by drush_parse_args(), drush_shift(), and drush_sitealias_check_arg().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_set_command (   $command)

Set the command being executed.

Drush_dispatch will set the correct command based on it's matching of the script arguments retrieved from drush_get_arguments to the implemented commands specified by drush_get_commands.

Parameters
Anumerically indexed array of command components.

Definition at line 380 of file context.inc.

References drush_set_context().

Referenced by drush_complete_process_argv(), drush_dispatch(), and drush_parse_command().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_set_config_special_contexts ( $options)

There are certain options such as 'site-aliases' and 'command-specific' that must be merged together if defined in multiple drush configuration files. If we did not do this merge, then the last configuration file that defined any of these properties would overwrite all of the options that came before in previously-loaded configuration files. We place all of them into their own context so that this does not happen.

Definition at line 223 of file context.inc.

References drush_command_default_options(), drush_expand_short_form_options(), drush_get_context(), and drush_get_global_options().

Referenced by drush_parse_args(), and drush_sitealias_load_all().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_set_context (   $context,
  $value 
)

Set a specific context.

Parameters
contextAny of the default defined contexts.
valueThe value to store in the context
Returns
An associative array of the settings specified in the request context.

Definition at line 293 of file context.inc.

References drush_get_context().

Referenced by _drush_bootstrap_do_drupal_site(), _drush_bootstrap_drupal_login(), _drush_bootstrap_drupal_root(), _drush_bootstrap_drupal_site_validate(), _drush_bootstrap_selected_uri(), _drush_invoke_hooks(), _drush_preflight_base_environment(), _drush_preflight_root_uri(), _drush_sitealias_find_and_load_all_aliases(), _pm_update_core(), drush_adjust_args_if_shebang_script(), drush_backend_parse_packets(), drush_backend_set_result(), drush_bootstrap(), drush_bootstrap_error(), drush_bootstrap_validate(), drush_clear_error(), drush_complete_process_argv(), drush_core_php_script(), drush_core_quick_drupal(), drush_core_runserver(), drush_cwd(), drush_early_complete(), drush_errors_on(), drush_hide_output_fields(), drush_load_command_engine(), drush_main(), drush_parse_args(), drush_pm_enable_validate(), drush_policy_updatedb_validate(), drush_postflight(), drush_preflight(), drush_preflight_backup_dir(), drush_preflight_command_dispatch(), drush_preflight_prepare(), drush_set_arguments(), drush_set_command(), drush_set_engine(), drush_shell_alias_replace(), drush_shift(), drush_sitealias_check_arg(), drush_sitealias_evaluate_path(), drush_sql_register_post_sync_op(), drush_ssh_site_ssh(), drush_user_abort(), package_handler_validate(), pm_update_project(), Unish\commandUnitCase\testCommandVersionSpecific(), Unish\tablesUnitTest\testFormatAutoWidths(), Unish\tablesUnitTest\testFormatTableHeader(), Unish\tablesUnitTest\testFormatTableWordWrap(), and Unish\tablesUnitTest\testFormatWidths().

Here is the call graph for this function:

drush_set_default (   $option,
  $value 
)

A small helper function to set the value in the default context

Definition at line 600 of file context.inc.

References drush_set_option().

Here is the call graph for this function:

drush_set_option (   $option,
  $value,
  $context = 'process' 
)

Set an option in one of the option contexts.

Parameters
optionThe option to set.
valueThe value to set it to.
contextOptional. Which context to set it in.
Returns
The value parameter. This allows for neater code such as $myvalue = drush_set_option('http_host', $_SERVER['HTTP_HOST']); Without having to constantly type out the value parameter.

Definition at line 591 of file context.inc.

References drush_get_context().

Referenced by _drush_batch_finished(), drush_adjust_args_if_shebang_script(), drush_core_quick_drupal(), drush_early_complete(), drush_pm_download_validate(), drush_pm_update(), drush_pm_updatecode(), drush_preflight_command_dispatch(), drush_set_default(), drush_sitealias_evaluate_path(), drush_sync_via_http_pre_sql_sync(), drush_usage_send(), make_parse_info_file(), make_prepare_libraries(), make_prepare_projects(), and make_projects().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sitealias_get_option (   $site_alias_record,
  $option,
  $default = NULL,
  $prefix = '',
  $context = NULL 
)

Get an option out of the specified alias. If it has not been set in the alias, then get it via drush_get_option.

Parameters
site_alias_recordAn array of options for an alias record.
optionThe name of the option to get.
defaultOptional. The value to return if the option does not exist in the site record and has not been set in a context.
contextOptional. The context to check for the option. If this is set, only this context will be searched.

Definition at line 489 of file context.inc.

References drush_get_option().

Referenced by drush_get_option_override(), drush_remote_host(), drush_shell_proc_build(), and drush_sitealias_get_db_spec().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_unset_option (   $option,
  $context = NULL 
)

Remove a setting from a specific context.

Parameters
Optionto be unset
Contextin which to unset the value in.

Definition at line 612 of file context.inc.

References drush_context_names(), and drush_get_context().

Referenced by drush_core_quick_drupal().

Here is the call graph for this function:

Here is the caller graph for this function:

File

doxygen/html/context_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: includes/context.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">context.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="context_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9f6272c1a68141ce873c07aae3a316ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac">drush_context_names</a> ()</td></tr>
<tr class="memitem:a4eb577b3ff1b1c25213a74cb5813b42f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a4eb577b3ff1b1c25213a74cb5813b42f">_drush_config_file</a> ($context, $prefix=NULL, $version= '')</td></tr>
<tr class="memitem:a0cc90f947ca5cfe0ee524a4e76298bac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a0cc90f947ca5cfe0ee524a4e76298bac">drush_load_config</a> ($context)</td></tr>
<tr class="memitem:aa04c05b4fd4e2cae135ae55ecdb6a3f9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa04c05b4fd4e2cae135ae55ecdb6a3f9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_load_config_file</b> ($context, $config_list)</td></tr>
<tr class="memitem:a0fb8d5ad5e5584c2debe84160326babe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fb8d5ad5e5584c2debe84160326babe"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_set_config_options</b> ($context, $options, $override=array())</td></tr>
<tr class="memitem:a2082bda0c615dc7163f69851ddd8edaf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf">drush_expand_short_form_options</a> (&amp;$options)</td></tr>
<tr class="memitem:a16a51c5b09d64e968c3bd7ec414b8846"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846">drush_set_config_special_contexts</a> (&amp;$options)</td></tr>
<tr class="memitem:af983acfe90e7d7bbdbd67c57f93708ba"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba">drush_set_context</a> ($context, $value)</td></tr>
<tr class="memitem:ad25559f8d7d753f636fbeac347c29fc5"><td class="memItemLeft" align="right" valign="top">&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5">drush_get_context</a> ($context=NULL, $default=NULL)</td></tr>
<tr class="memitem:ade90fc1aa9c39a740a20c2bf1cb97c25"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25">drush_set_arguments</a> ($arguments)</td></tr>
<tr class="memitem:afaf9361f1297f29d10402b075985985a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#afaf9361f1297f29d10402b075985985a">drush_get_arguments</a> ()</td></tr>
<tr class="memitem:af37b8df12a8fc3bf25b173d420a11203"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203">drush_set_command</a> ($command)</td></tr>
<tr class="memitem:a8fc57227375a540fea5314b154576354"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a8fc57227375a540fea5314b154576354">drush_get_command</a> ()</td></tr>
<tr class="memitem:afe91fb3e5219ecb2208c3b036b1f0cb8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8">drush_get_option</a> ($option, $default=NULL, $context=NULL)</td></tr>
<tr class="memitem:ade60e65f76863ed34db22f5e7f83a150"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150">drush_get_option_list</a> ($option, $default=array(), $context=NULL)</td></tr>
<tr class="memitem:a559008f6decb23108b83e704208e415e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a559008f6decb23108b83e704208e415e">drush_get_option_override</a> ($option_overrides, $option, $default=NULL, $context=NULL)</td></tr>
<tr class="memitem:add3af7aa09b1ccf49718577a8d7aa61d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#add3af7aa09b1ccf49718577a8d7aa61d">drush_sitealias_get_option</a> ($site_alias_record, $option, $default=NULL, $prefix= '', $context=NULL)</td></tr>
<tr class="memitem:ae7691e4635dc346aae09eb3f0bbd6092"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ae7691e4635dc346aae09eb3f0bbd6092">drush_get_context_options</a> ($option, $flatten=FALSE)</td></tr>
<tr class="memitem:a72dfb89d6a4ba0bb143e3256f997d2b8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8">drush_get_merged_options</a> ()</td></tr>
<tr class="memitem:ae6fa58943e3805a7da54f0bf63ea178e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ae6fa58943e3805a7da54f0bf63ea178e">drush_get_merged_prefixed_options</a> ($prefix)</td></tr>
<tr class="memitem:aee5781894bf828bfa508d9052553f809"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#aee5781894bf828bfa508d9052553f809">_drush_get_option</a> ($option, $context)</td></tr>
<tr class="memitem:aa4b55e2f6174c8b6efaa8f23a0f9e0af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af">drush_set_option</a> ($option, $value, $context= 'process')</td></tr>
<tr class="memitem:ad552fe78011c544abadf05b2dfbe4e7f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#ad552fe78011c544abadf05b2dfbe4e7f">drush_set_default</a> ($option, $value)</td></tr>
<tr class="memitem:a2d9c3fdcab304aaf56293d3881e98a9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#a2d9c3fdcab304aaf56293d3881e98a9a">drush_unset_option</a> ($option, $context=NULL)</td></tr>
<tr class="memitem:aa29a91479997d413029f14ac5fbd7e94"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="context_8inc.html#aa29a91479997d413029f14ac5fbd7e94">drush_save_config</a> ($context)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The Drush context API implementation.</p>
<p>This API acts as a storage mechanism for all options, arguments and configuration settings that are loaded into drush.</p>
<p>This API also acts as an IPC mechanism between the different drush commands, and provides protection from accidentally overriding settings that are needed by other parts of the system.</p>
<p>It also avoids the necessity to pass references through the command chain and allows the scripts to keep track of whether any settings have changed since the previous execution.</p>
<p>This API defines several contexts that are used by default.</p>
<p>Argument contexts : These contexts are used by Drush to store information on the command. They have their own access functions in the forms of <a class="el" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25">drush_set_arguments()</a>, <a class="el" href="context_8inc.html#afaf9361f1297f29d10402b075985985a">drush_get_arguments()</a>, <a class="el" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203">drush_set_command()</a>, <a class="el" href="context_8inc.html#a8fc57227375a540fea5314b154576354">drush_get_command()</a>.</p>
<p>command : The drush command being executed. arguments : Any additional arguments that were specified.</p>
<p>Setting contexts : These contexts store options that have been passed to the <a class="el" href="drush_8php.html">drush.php</a> script, either through the use of any of the config files, directly from the command line through &ndash;option='value' or through a JSON encoded string passed through the STDIN pipe.</p>
<p>These contexts are accessible through the <a class="el" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8">drush_get_option()</a> and <a class="el" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af">drush_set_option()</a> functions. See <a class="el" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac">drush_context_names()</a> for a description of all of the contexts.</p>
<p>Drush commands may also choose to save settings for a specific context to the matching configuration file through the <a class="el" href="context_8inc.html#aa29a91479997d413029f14ac5fbd7e94">drush_save_config()</a> function. </p>

<p>Definition in file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a4eb577b3ff1b1c25213a74cb5813b42f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_config_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$prefix</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$version</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a list of possible drushrc file locations.</p>
<p>A valid drush context from <a class="el" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac">drush_context_names()</a>.  Optional. Specify a prefix to prepend to ".drushrc.php" when looking for config files. Most likely used by contrib commands. </p>
<dl class="section return"><dt>Returns</dt><dd>An associative array containing possible config files to load The keys are the 'context' of the files, the values are the file system locations. </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00096">96</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="includes_2environment_8inc_source.html#l00649">drush_server_home()</a>.</p>

<p>Referenced by <a class="el" href="context_8inc_source.html#l00148">drush_load_config()</a>, and <a class="el" href="context_8inc_source.html#l00635">drush_save_config()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_cgraph.png" border="0" usemap="#context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_cgraph" alt=""/></div>
<map name="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_cgraph" id="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="185,5,313,35"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="181,59,317,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_icgraph.png" border="0" usemap="#context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_icgraph" alt=""/></div>
<map name="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_icgraph" id="context_8inc_a4eb577b3ff1b1c25213a74cb5813b42f_icgraph">
<area shape="rect" id="node3" href="context_8inc.html#a0cc90f947ca5cfe0ee524a4e76298bac" title="drush_load_config" alt="" coords="184,155,309,184"/><area shape="rect" id="node19" href="context_8inc.html#aa29a91479997d413029f14ac5fbd7e94" title="drush_save_config" alt="" coords="181,208,312,237"/><area shape="rect" id="node5" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="404,101,511,131"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#aaf2547972243d700b69f6ca272691cda" title="_drush_bootstrap_drupal_root" alt="" coords="361,155,553,184"/><area shape="rect" id="node17" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a8be8f9d6b7c4854ff3167e9005ae5e1e" title="_drush_bootstrap_drupal_site" alt="" coords="361,208,553,237"/><area shape="rect" id="node7" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="659,5,747,35"/><area shape="rect" id="node9" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="604,58,801,105"/><area shape="rect" id="node11" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="617,127,788,174"/><area shape="rect" id="node13" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="607,197,799,243"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aee5781894bf828bfa508d9052553f809"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_get_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Helper function to recurse through possible option names </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00562">562</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>Referenced by <a class="el" href="context_8inc_source.html#l00507">drush_get_context_options()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_aee5781894bf828bfa508d9052553f809_icgraph.png" border="0" usemap="#context_8inc_aee5781894bf828bfa508d9052553f809_icgraph" alt=""/></div>
<map name="context_8inc_aee5781894bf828bfa508d9052553f809_icgraph" id="context_8inc_aee5781894bf828bfa508d9052553f809_icgraph">
<area shape="rect" id="node3" href="context_8inc.html#ae7691e4635dc346aae09eb3f0bbd6092" title="drush_get_context_options" alt="" coords="181,565,360,595"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="211,1179,331,1208"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a8839a1aae14125ef4128d1477827ca0e" title="drush_build_drush_command" alt="" coords="409,5,599,35"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="433,59,575,88"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="429,112,579,141"/><area shape="rect" id="node13" href="config_8drush_8inc.html#a445c382afd7d7b9e7f6a7bad268c0d4d" title="drush_config_set" alt="" coords="444,165,564,195"/><area shape="rect" id="node15" href="config_8drush_8inc.html#a6258f151a3c27b586409d46f1799a666" title="drush_config_export" alt="" coords="435,219,573,248"/><area shape="rect" id="node17" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="435,272,573,301"/><area shape="rect" id="node19" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="443,325,565,355"/><area shape="rect" id="node21" href="config_8drush_8inc.html#ac1bfb8fb33a150037b4151fc96fdd413" title="drush_config_get_object" alt="" coords="423,379,585,408"/><area shape="rect" id="node23" href="core_8drush_8inc.html#adebaebb0b4f27f018d98cf29420de69f" title="drush_core_requirements" alt="" coords="420,432,588,461"/><area shape="rect" id="node25" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="440,485,568,515"/><area shape="rect" id="node27" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="421,539,587,568"/><area shape="rect" id="node29" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="428,592,580,621"/><area shape="rect" id="node31" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="412,645,596,675"/><area shape="rect" id="node33" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="419,699,589,728"/><area shape="rect" id="node35" href="includes_2environment_8inc.html#a9088e5477cb49d21ca52629f5cc22d85" title="drush_error_handler" alt="" coords="436,752,572,781"/><area shape="rect" id="node38" href="druplicon_8drush_8inc.html#adfaa37aad05d7c784c4ff6ec5c9ab5ec" title="druplicon_drush_exit" alt="" coords="433,805,575,835"/><area shape="rect" id="node40" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="424,859,584,888"/><area shape="rect" id="node42" href="notify_8drush_8inc.html#af572d593a2ac7c62058eccf211751d45" title="drush_notify_shutdown\l_error" alt="" coords="841,1005,996,1051"/><area shape="rect" id="node44" href="notify_8drush_8inc.html#a019c8116bcc63e1577cf6b5dec3ec24e" title="drush_notify_send" alt="" coords="656,1013,784,1043"/><area shape="rect" id="node47" href="notify_8drush_8inc.html#a671bf218a111ec39d0f0fc2919e64daf" title="drush_notify_send_text" alt="" coords="425,1013,583,1043"/><area shape="rect" id="node50" href="notify_8drush_8inc.html#a1cf454258746f8e8a83c5fa9b9a91426" title="drush_notify_send_audio" alt="" coords="421,1067,587,1096"/><area shape="rect" id="node53" href="notify_8drush_8inc.html#a164c0fa71b4c3c581b887c130da76f6b" title="drush_notify_allowed" alt="" coords="648,1092,792,1121"/><area shape="rect" id="node56" href="classdrush__outputformat.html#a69d8dba156e7b5aabb76fea0f52cfd68" title="drush_outputformat\l\\process" alt="" coords="437,1170,571,1217"/><area shape="rect" id="node58" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="431,1290,577,1337"/><area shape="rect" id="node60" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="649,1299,791,1328"/><area shape="rect" id="node63" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="421,1359,587,1406"/><area shape="rect" id="node66" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="435,1429,573,1459"/><area shape="rect" id="node68" href="state_8drush_8inc.html#ab772d29dd372d890751f69e7f23940bd" title="drush_state_set" alt="" coords="447,1483,561,1512"/><area shape="rect" id="node70" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="667,1561,773,1591"/><area shape="rect" id="node72" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="417,1587,591,1616"/><area shape="rect" id="node75" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf" title="usage_drush_exit" alt="" coords="443,1640,565,1669"/><area shape="rect" id="node77" href="views_8d8_8drush_8inc.html#a3579085e08bf50ff4595e0bcdde1e4ca" title="drush_views_list" alt="" coords="445,1693,563,1723"/><area shape="rect" id="node79" href="views_8d8_8drush_8inc.html#aeb32a75a48c4c084de58193c6d8cfca2" title="drush_views_execute" alt="" coords="431,1747,577,1776"/><area shape="rect" id="node81" href="views_8d8_8drush_8inc.html#a5bef08605d0fc2679d2fcbc7a00aecc9" title="drush_views_analyze" alt="" coords="431,1800,577,1829"/><area shape="rect" id="node83" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="648,1903,792,1950"/><area shape="rect" id="node85" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="872,1912,965,1941"/><area shape="rect" id="node87" href="generate_8make_8inc.html#a7bcbdc0585c922d0e1e5953920f877f4" title="_drush_make_generate\l_get_version_options" alt="" coords="425,2058,583,2105"/><area shape="rect" id="node89" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="433,2128,575,2157"/><area shape="rect" id="node91" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="651,2205,789,2235"/><area shape="rect" id="node93" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="431,2232,577,2261"/><area shape="rect" id="node96" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="436,2285,572,2315"/><area shape="rect" id="node99" href="make_8drush_8inc.html#ad9b2f2e15282d634a58229f30d819bde" title="drush_make_process" alt="" coords="431,2339,577,2368"/><area shape="rect" id="node101" href="make_8drush_8inc.html#adb3866751fd19344b00c069793f46322" title="drush_make_post_make" alt="" coords="423,2392,585,2421"/><area shape="rect" id="node103" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="425,1955,583,1984"/><area shape="rect" id="node106" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="667,1973,773,2003"/><area shape="rect" id="node110" href="make_8drush_8inc.html#a0c50fe5a34ad09671d175614fc27e485" title="make_prepare_libraries" alt="" coords="427,2445,581,2475"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9f6272c1a68141ce873c07aae3a316ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_context_names </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a list of the valid drush context names.</p>
<p>These context names are carefully ordered from highest to lowest priority.</p>
<p>These contexts are evaluated in a certain order, and the highest priority value is returned by default from drush_get_option. This allows scripts to check whether an option was different before the current execution.</p>
<p>Specified by the script itself : process : Generated in the current process. cli : Passed as &ndash;option=value to the command line. stdin : Passed as a JSON encoded string through stdin. specific : Defined in a command-specific option record, and set in the command context whenever that command is used. alias : Defined in an alias record, and set in the alias context whenever that alias is used.</p>
<p>Specified by config files : custom : Loaded from the config file specified by &ndash;config or -c site : Loaded from the drushrc.php file in the Drupal site directory. drupal : Loaded from the drushrc.php file in the Drupal root directory. user : Loaded from the drushrc.php file in the user's home directory. home.drush Loaded from the drushrc.php file in the $HOME/.drush directory. system : Loaded from the drushrc.php file in the system's $PREFIX/etc/drush directory. drush : Loaded from the drushrc.php file in the same directory as <a class="el" href="drush_8php.html">drush.php</a>.</p>
<p>Specified by the script, but has the lowest priority : default : The script might provide some sensible defaults during init. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00074">74</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>Referenced by <a class="el" href="context_8inc_source.html#l00507">drush_get_context_options()</a>, <a class="el" href="context_8inc_source.html#l00530">drush_get_merged_options()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, and <a class="el" href="context_8inc_source.html#l00612">drush_unset_option()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a9f6272c1a68141ce873c07aae3a316ac_icgraph.png" border="0" usemap="#context_8inc_a9f6272c1a68141ce873c07aae3a316ac_icgraph" alt=""/></div>
<map name="context_8inc_a9f6272c1a68141ce873c07aae3a316ac_icgraph" id="context_8inc_a9f6272c1a68141ce873c07aae3a316ac_icgraph">
<area shape="rect" id="node3" href="context_8inc.html#ae7691e4635dc346aae09eb3f0bbd6092" title="drush_get_context_options" alt="" coords="205,252,384,281"/><area shape="rect" id="node7" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8" title="drush_get_merged_options" alt="" coords="205,2307,384,2336"/><area shape="rect" id="node13" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="235,1099,355,1128"/><area shape="rect" id="node107" href="context_8inc.html#a2d9c3fdcab304aaf56293d3881e98a9a" title="drush_unset_option" alt="" coords="228,552,361,581"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a8839a1aae14125ef4128d1477827ca0e" title="drush_build_drush_command" alt="" coords="433,5,623,35"/><area shape="rect" id="node9" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="452,2307,604,2336"/><area shape="rect" id="node11" href="context_8inc.html#ae6fa58943e3805a7da54f0bf63ea178e" title="drush_get_merged_prefixed\l_options" alt="" coords="437,2359,619,2406"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="457,779,599,808"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="453,832,603,861"/><area shape="rect" id="node19" href="config_8drush_8inc.html#a445c382afd7d7b9e7f6a7bad268c0d4d" title="drush_config_set" alt="" coords="468,885,588,915"/><area shape="rect" id="node21" href="config_8drush_8inc.html#a6258f151a3c27b586409d46f1799a666" title="drush_config_export" alt="" coords="459,939,597,968"/><area shape="rect" id="node23" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="459,992,597,1021"/><area shape="rect" id="node25" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="467,1045,589,1075"/><area shape="rect" id="node27" href="config_8drush_8inc.html#ac1bfb8fb33a150037b4151fc96fdd413" title="drush_config_get_object" alt="" coords="447,1099,609,1128"/><area shape="rect" id="node29" href="core_8drush_8inc.html#adebaebb0b4f27f018d98cf29420de69f" title="drush_core_requirements" alt="" coords="444,1152,612,1181"/><area shape="rect" id="node31" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="464,1205,592,1235"/><area shape="rect" id="node33" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="445,59,611,88"/><area shape="rect" id="node35" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="452,1259,604,1288"/><area shape="rect" id="node37" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="436,1312,620,1341"/><area shape="rect" id="node39" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="443,1365,613,1395"/><area shape="rect" id="node41" href="includes_2environment_8inc.html#a9088e5477cb49d21ca52629f5cc22d85" title="drush_error_handler" alt="" coords="460,1419,596,1448"/><area shape="rect" id="node44" href="druplicon_8drush_8inc.html#adfaa37aad05d7c784c4ff6ec5c9ab5ec" title="druplicon_drush_exit" alt="" coords="457,1472,599,1501"/><area shape="rect" id="node46" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="448,1525,608,1555"/><area shape="rect" id="node48" href="notify_8drush_8inc.html#af572d593a2ac7c62058eccf211751d45" title="drush_notify_shutdown\l_error" alt="" coords="865,1673,1020,1719"/><area shape="rect" id="node50" href="notify_8drush_8inc.html#a019c8116bcc63e1577cf6b5dec3ec24e" title="drush_notify_send" alt="" coords="680,1681,808,1711"/><area shape="rect" id="node53" href="notify_8drush_8inc.html#a671bf218a111ec39d0f0fc2919e64daf" title="drush_notify_send_text" alt="" coords="449,1733,607,1763"/><area shape="rect" id="node56" href="notify_8drush_8inc.html#a1cf454258746f8e8a83c5fa9b9a91426" title="drush_notify_send_audio" alt="" coords="445,1629,611,1659"/><area shape="rect" id="node59" href="notify_8drush_8inc.html#a164c0fa71b4c3c581b887c130da76f6b" title="drush_notify_allowed" alt="" coords="672,1760,816,1789"/><area shape="rect" id="node62" href="classdrush__outputformat.html#a69d8dba156e7b5aabb76fea0f52cfd68" title="drush_outputformat\l\\process" alt="" coords="461,1837,595,1883"/><area shape="rect" id="node64" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="455,1957,601,2003"/><area shape="rect" id="node66" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="673,1965,815,1995"/><area shape="rect" id="node69" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="445,2026,611,2073"/><area shape="rect" id="node72" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="459,2096,597,2125"/><area shape="rect" id="node74" href="state_8drush_8inc.html#ab772d29dd372d890751f69e7f23940bd" title="drush_state_set" alt="" coords="471,2149,585,2179"/><area shape="rect" id="node76" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="691,2227,797,2256"/><area shape="rect" id="node78" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="441,2253,615,2283"/><area shape="rect" id="node81" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf" title="usage_drush_exit" alt="" coords="467,112,589,141"/><area shape="rect" id="node83" href="views_8d8_8drush_8inc.html#a3579085e08bf50ff4595e0bcdde1e4ca" title="drush_views_list" alt="" coords="469,165,587,195"/><area shape="rect" id="node85" href="views_8d8_8drush_8inc.html#aeb32a75a48c4c084de58193c6d8cfca2" title="drush_views_execute" alt="" coords="455,219,601,248"/><area shape="rect" id="node87" href="views_8d8_8drush_8inc.html#a5bef08605d0fc2679d2fcbc7a00aecc9" title="drush_views_analyze" alt="" coords="455,272,601,301"/><area shape="rect" id="node89" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="456,375,600,422"/><area shape="rect" id="node91" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="697,355,791,384"/><area shape="rect" id="node93" href="generate_8make_8inc.html#a7bcbdc0585c922d0e1e5953920f877f4" title="_drush_make_generate\l_get_version_options" alt="" coords="449,445,607,491"/><area shape="rect" id="node95" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="457,515,599,544"/><area shape="rect" id="node97" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="675,593,813,623"/><area shape="rect" id="node99" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="455,619,601,648"/><area shape="rect" id="node102" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="460,672,596,701"/><area shape="rect" id="node105" href="make_8drush_8inc.html#ad9b2f2e15282d634a58229f30d819bde" title="drush_make_process" alt="" coords="455,725,601,755"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2082bda0c615dc7163f69851ddd8edaf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_expand_short_form_options </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>For all global options with a short form, convert all options in the option array that use the short form into the long form. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00197">197</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00255">drush_get_global_options()</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, and <a class="el" href="context_8inc_source.html#l00223">drush_set_config_special_contexts()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_cgraph.png" border="0" usemap="#context_8inc_a2082bda0c615dc7163f69851ddd8edaf_cgraph" alt=""/></div>
<map name="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_cgraph" id="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="193,32,361,61"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="411,23,573,70"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="621,32,813,61"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="865,5,1017,35"/><area shape="rect" id="node11" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="863,59,1020,88"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1071,59,1199,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_icgraph.png" border="0" usemap="#context_8inc_a2082bda0c615dc7163f69851ddd8edaf_icgraph" alt=""/></div>
<map name="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_icgraph" id="context_8inc_a2082bda0c615dc7163f69851ddd8edaf_icgraph">
<area shape="rect" id="node3" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="192,131,363,178"/><area shape="rect" id="node7" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="193,257,361,303"/><area shape="rect" id="node5" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1149,5,1237,35"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="428,265,553,295"/><area shape="rect" id="node30" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="411,413,571,443"/><area shape="rect" id="node11" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="620,265,817,295"/><area shape="rect" id="node15" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="640,632,797,661"/><area shape="rect" id="node19" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="633,155,804,184"/><area shape="rect" id="node13" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1341,292,1491,321"/><area shape="rect" id="node17" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="869,754,1043,801"/><area shape="rect" id="node21" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="903,136,1009,165"/><area shape="rect" id="node24" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="1095,58,1292,105"/><area shape="rect" id="node26" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="1108,127,1279,174"/><area shape="rect" id="node28" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="1097,197,1289,243"/><area shape="rect" id="node32" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="639,479,799,508"/><area shape="rect" id="node34" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="883,370,1029,417"/><area shape="rect" id="node38" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="880,439,1032,486"/><area shape="rect" id="node40" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="867,509,1045,539"/><area shape="rect" id="node42" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="877,317,1035,347"/><area shape="rect" id="node47" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="891,562,1021,609"/><area shape="rect" id="node49" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="895,631,1017,678"/><area shape="rect" id="node51" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4" title="sql_sql_sync_complete" alt="" coords="877,701,1035,731"/><area shape="rect" id="node36" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1123,379,1264,408"/><area shape="rect" id="node44" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1124,317,1263,347"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afaf9361f1297f29d10402b075985985a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_arguments </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gets the command line arguments passed to Drush.</p>
<dl class="section return"><dt>Returns</dt><dd>array An indexed array of arguments. Until Drush has dispatched the command, the array will include the command name as the first element. After that point the array will not include the command name.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25">drush_set_arguments()</a> </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00366">366</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="complete_8inc_source.html#l00101">drush_early_complete()</a>, <a class="el" href="includes_2command_8inc_source.html#l01194">drush_parse_command()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, <a class="el" href="includes_2command_8inc_source.html#l01722">drush_shell_alias_replace()</a>, <a class="el" href="includes_2command_8inc_source.html#l00838">drush_shift()</a>, and <a class="el" href="sitealias_8inc_source.html#l00020">drush_sitealias_check_arg()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_afaf9361f1297f29d10402b075985985a_cgraph.png" border="0" usemap="#context_8inc_afaf9361f1297f29d10402b075985985a_cgraph" alt=""/></div>
<map name="context_8inc_afaf9361f1297f29d10402b075985985a_cgraph" id="context_8inc_afaf9361f1297f29d10402b075985985a_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="201,5,329,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_afaf9361f1297f29d10402b075985985a_icgraph.png" border="0" usemap="#context_8inc_afaf9361f1297f29d10402b075985985a_icgraph" alt=""/></div>
<map name="context_8inc_afaf9361f1297f29d10402b075985985a_icgraph" id="context_8inc_afaf9361f1297f29d10402b075985985a_icgraph">
<area shape="rect" id="node3" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="701,5,851,35"/><area shape="rect" id="node5" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="209,368,367,397"/><area shape="rect" id="node7" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="932,333,1103,379"/><area shape="rect" id="node33" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="203,252,373,281"/><area shape="rect" id="node44" href="includes_2command_8inc.html#a069157c844a772c6fc1c5c7e63f1b613" title="drush_shift" alt="" coords="245,421,331,451"/><area shape="rect" id="node46" href="sitealias_8inc.html#aea0a6ddf95752b4958fc14698a8db017" title="drush_sitealias_check_arg" alt="" coords="200,187,376,216"/><area shape="rect" id="node11" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="451,490,597,537"/><area shape="rect" id="node9" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1195,200,1283,229"/><area shape="rect" id="node13" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="703,472,849,501"/><area shape="rect" id="node17" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="723,632,829,661"/><area shape="rect" id="node25" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="716,525,836,555"/><area shape="rect" id="node27" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="681,579,871,608"/><area shape="rect" id="node29" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="673,419,879,448"/><area shape="rect" id="node15" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="964,472,1071,501"/><area shape="rect" id="node19" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="971,605,1064,635"/><area shape="rect" id="node21" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="929,659,1105,688"/><area shape="rect" id="node23" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1156,659,1321,688"/><area shape="rect" id="node35" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="471,187,577,216"/><area shape="rect" id="node38" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="677,109,875,155"/><area shape="rect" id="node40" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="691,178,861,225"/><area shape="rect" id="node42" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="680,247,872,294"/><area shape="rect" id="node48" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="425,115,623,144"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8fc57227375a540fea5314b154576354"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return the command being executed. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00387">387</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="sitealias_8drush_8inc_source.html#l00136">_drush_sitealias_user_specified_list()</a>, <a class="el" href="includes_2command_8inc_source.html#l00197">drush_command()</a>, <a class="el" href="includes_2command_8inc_source.html#l01606">drush_get_original_cli_args_and_options()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00060">drush_notify_shutdown_error()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00019">drush_set_default_outputformat()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00048">notify_drush_exit()</a>, and <a class="el" href="usage_8drush_8inc_source.html#l00046">usage_drush_exit()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a8fc57227375a540fea5314b154576354_cgraph.png" border="0" usemap="#context_8inc_a8fc57227375a540fea5314b154576354_cgraph" alt=""/></div>
<map name="context_8inc_a8fc57227375a540fea5314b154576354_cgraph" id="context_8inc_a8fc57227375a540fea5314b154576354_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="199,5,327,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a8fc57227375a540fea5314b154576354_icgraph.png" border="0" usemap="#context_8inc_a8fc57227375a540fea5314b154576354_icgraph" alt=""/></div>
<map name="context_8inc_a8fc57227375a540fea5314b154576354_icgraph" id="context_8inc_a8fc57227375a540fea5314b154576354_icgraph">
<area shape="rect" id="node3" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="452,167,599,214"/><area shape="rect" id="node7" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="241,93,359,123"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b" title="drush_get_original\l_cli_args_and_options" alt="" coords="225,23,375,70"/><area shape="rect" id="node15" href="notify_8drush_8inc.html#af572d593a2ac7c62058eccf211751d45" title="drush_notify_shutdown\l_error" alt="" coords="223,197,377,243"/><area shape="rect" id="node17" href="outputformat_8drush_8inc.html#a46f0ffb5f8bf676a5dfec452b083a9f2" title="drush_set_default_outputformat" alt="" coords="197,267,403,296"/><area shape="rect" id="node22" href="notify_8drush_8inc.html#aa3b05a4a16083977b8616c2404a045fc" title="notify_drush_exit" alt="" coords="240,320,360,349"/><area shape="rect" id="node24" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf" title="usage_drush_exit" alt="" coords="239,373,361,403"/><area shape="rect" id="node5" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="648,176,789,205"/><area shape="rect" id="node11" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="456,59,595,88"/><area shape="rect" id="node13" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="456,5,595,35"/><area shape="rect" id="node20" href="views_8d8_8drush_8inc.html#aeb32a75a48c4c084de58193c6d8cfca2" title="drush_views_execute" alt="" coords="452,267,599,296"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad25559f8d7d753f636fbeac347c29fc5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">&amp; drush_get_context </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a specific context, or the whole context cache</p>
<p>This function provides a storage mechanism for any information the currently running process might need to communicate.</p>
<p>This avoids the use of globals, and constants.</p>
<p>Functions that operate on the context cache, can retrieve a reference to the context cache using : $cache = &amp;drush_get_context($context);</p>
<p>This is a private function, because it is meant as an internal generalized API for writing static cache functions, not as a general purpose function to be used inside commands.</p>
<p>Code that modifies the reference directly might have unexpected consequences, such as modifying the arguments after they have already been parsed and dispatched to the callbacks.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>Optional. Any of the default defined contexts.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If context is not supplied, the entire context cache will be returned. Otherwise only the requested context will be returned. If the context does not exist yet, it will be initialized to an empty array. </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00328">328</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00848">_drush_backend_get_global_contexts()</a>, <a class="el" href="backend_8inc_source.html#l00278">_drush_backend_integrate()</a>, <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00584">_drush_bootstrap_do_drupal_site()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00668">_drush_bootstrap_drupal_full()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00422">_drush_bootstrap_drupal_root_validate()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00488">_drush_bootstrap_selected_uri()</a>, <a class="el" href="context_8inc_source.html#l00096">_drush_config_file()</a>, <a class="el" href="sitealias_8inc_source.html#l01344">_drush_find_local_sites_at_root()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01609">_drush_pm_extension_cache_file()</a>, <a class="el" href="preflight_8inc_source.html#l00244">_drush_preflight_base_environment()</a>, <a class="el" href="config_8drush_8inc_source.html#l00500">_drush_print_config_changes_table()</a>, <a class="el" href="drush_8inc_source.html#l01498">_drush_print_log()</a>, <a class="el" href="exec_8inc_source.html#l00124">_drush_shell_exec()</a>, <a class="el" href="sitealias_8drush_8inc_source.html#l00095">_drush_sitealias_alias_list()</a>, <a class="el" href="sitealias_8inc_source.html#l00782">_drush_sitealias_cache_alias()</a>, <a class="el" href="sitealias_8inc_source.html#l00613">_drush_sitealias_find_and_load_alias()</a>, <a class="el" href="sitealias_8inc_source.html#l00493">_drush_sitealias_find_and_load_all_aliases()</a>, <a class="el" href="sitealias_8inc_source.html#l01453">_drush_sitealias_find_local_alias_name()</a>, <a class="el" href="sitealias_8inc_source.html#l01477">_drush_sitealias_find_record_for_local_site()</a>, <a class="el" href="sitealias_8inc_source.html#l00210">_drush_sitealias_get_record()</a>, <a class="el" href="sitealias_8drush_8inc_source.html#l00105">_drush_sitealias_site_list()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00616">_drush_sql_get_post_sync_messages()</a>, <a class="el" href="sync__via__http_8drush_8inc_source.html#l00089">_drush_sync_via_http_download_file()</a>, <a class="el" href="includes_2command_8inc_source.html#l00535">_drush_verify_cli_options()</a>, <a class="el" href="download_8pm_8inc_source.html#l00327">_pm_download_destination()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00123">_pm_update_core()</a>, <a class="el" href="docs_8drush_8inc_source.html#l00026">docs_drush_command()</a>, <a class="el" href="druplicon_8drush_8inc_source.html#l00019">druplicon_drush_exit()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00071">drush_archive_dump()</a>, <a class="el" href="backend_8inc_source.html#l00127">drush_backend_get_result()</a>, <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>, <a class="el" href="backend_8inc_source.html#l00216">drush_backend_packet()</a>, <a class="el" href="drush_8inc_source.html#l01435">drush_backend_packet_log()</a>, <a class="el" href="backend_8inc_source.html#l00084">drush_backend_set_result()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00170">drush_bootstrap()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00378">drush_bootstrap_error()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00326">drush_bootstrap_max()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00282">drush_bootstrap_to_phase()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00736">drush_bootstrap_value()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00441">drush_build_drush_command()</a>, <a class="el" href="drush_8inc_source.html#l00429">drush_choice()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00249">drush_cid_install_profile()</a>, <a class="el" href="includes_2command_8inc_source.html#l01506">drush_command_default_options()</a>, <a class="el" href="includes_2command_8inc_source.html#l01355">drush_commandfile_list()</a>, <a class="el" href="complete_8inc_source.html#l00228">drush_complete_process_argv()</a>, <a class="el" href="complete_8inc_source.html#l00450">drush_complete_rebuild()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00259">drush_conf_path()</a>, <a class="el" href="config_8drush_8inc_source.html#l00198">drush_config_set()</a>, <a class="el" href="drush_8inc_source.html#l00375">drush_confirm()</a>, <a class="el" href="core_8drush_8inc_source.html#l01201">drush_core_execute()</a>, <a class="el" href="runserver_8drush_8inc_source.html#l00061">drush_core_runserver()</a>, <a class="el" href="shellalias_8drush_8inc_source.html#l00054">drush_core_shell_alias()</a>, <a class="el" href="core_8drush_8inc_source.html#l00441">drush_core_updatedb()</a>, <a class="el" href="preflight_8inc_source.html#l00390">drush_coverage_shutdown()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00115">drush_cwd()</a>, <a class="el" href="drush_8inc_source.html#l01328">drush_do_command_redispatch()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_do_multiple_command()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00028">drush_drupal_version()</a>, <a class="el" href="complete_8inc_source.html#l00101">drush_early_complete()</a>, <a class="el" href="includes_2command_8inc_source.html#l01649">drush_enforce_requirement_bootstrap_phase()</a>, <a class="el" href="engines_8inc_source.html#l00326">drush_engine_topic_command()</a>, <a class="el" href="drush_8inc_source.html#l01814">drush_errors_off()</a>, <a class="el" href="drush_8inc_source.html#l01834">drush_errors_on()</a>, <a class="el" href="context_8inc_source.html#l00366">drush_get_arguments()</a>, <a class="el" href="includes_2cache_8inc_source.html#l00184">drush_get_cid()</a>, <a class="el" href="context_8inc_source.html#l00387">drush_get_command()</a>, <a class="el" href="context_8inc_source.html#l00507">drush_get_context_options()</a>, <a class="el" href="engines_8inc_source.html#l00506">drush_get_engine()</a>, <a class="el" href="drush_8inc_source.html#l01753">drush_get_error()</a>, <a class="el" href="drush_8inc_source.html#l01763">drush_get_error_log()</a>, <a class="el" href="drush_8inc_source.html#l01466">drush_get_log()</a>, <a class="el" href="context_8inc_source.html#l00530">drush_get_merged_options()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="includes_2command_8inc_source.html#l01606">drush_get_original_cli_args_and_options()</a>, <a class="el" href="includes_2command_8inc_source.html#l00448">drush_handle_command_output()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00218">drush_has_boostrapped()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00462">drush_hide_output_fields()</a>, <a class="el" href="drush_8api_8php_source.html#l00241">drush_hook_pre_pm_enable()</a>, <a class="el" href="engines_8inc_source.html#l00146">drush_load_command_engine()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="drush_8php_source.html#l00033">drush_main()</a>, <a class="el" href="engines_8inc_source.html#l00173">drush_merge_engine_data()</a>, <a class="el" href="drush_8inc_source.html#l00659">drush_op()</a>, <a class="el" href="exec_8inc_source.html#l00027">drush_op_system()</a>, <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>, <a class="el" href="drush_8inc_source.html#l01480">drush_pipe_output()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, <a class="el" href="download_8pm_8inc_source.html#l00011">drush_pm_download_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01000">drush_pm_enable()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00843">drush_pm_enable_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01165">drush_pm_post_pm_update()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01188">drush_pm_post_pm_updatecode()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01545">drush_pm_update_lock()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00017">drush_pm_updatecode()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00375">drush_pm_updatecode_rollback()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01175">drush_pm_updatecode_validate()</a>, <a class="el" href="filesystem_8inc_source.html#l00555">drush_preflight_backup_dir()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, <a class="el" href="filesystem_8inc_source.html#l00582">drush_prepare_backup_dir()</a>, <a class="el" href="output_8inc_source.html#l00668">drush_print_file()</a>, <a class="el" href="output_8inc_source.html#l00056">drush_print_pipe()</a>, <a class="el" href="includes_2command_8inc_source.html#l00949">drush_process_bootstrap_to_first_arg()</a>, <a class="el" href="drush_8inc_source.html#l00603">drush_prompt()</a>, <a class="el" href="includes_2command_8inc_source.html#l00665">drush_redispatch_get_options()</a>, <a class="el" href="sandwich_8drush_8inc_source.html#l00215">drush_sandwich_make_me_a_sandwich()</a>, <a class="el" href="context_8inc_source.html#l00635">drush_save_config()</a>, <a class="el" href="context_8inc_source.html#l00223">drush_set_config_special_contexts()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="context_8inc_source.html#l00591">drush_set_option()</a>, <a class="el" href="includes_2command_8inc_source.html#l01722">drush_shell_alias_replace()</a>, <a class="el" href="exec_8inc_source.html#l00229">drush_shell_proc_open()</a>, <a class="el" href="includes_2command_8inc_source.html#l00838">drush_shift()</a>, <a class="el" href="preflight_8inc_source.html#l00341">drush_shutdown()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00233">drush_site_dir_lookup_from_hostname()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00181">drush_site_path()</a>, <a class="el" href="sitealias_8inc_source.html#l00356">drush_sitealias_alias_path()</a>, <a class="el" href="sitealias_8inc_source.html#l00983">drush_sitealias_bootstrapped_site_name()</a>, <a class="el" href="sitealias_8inc_source.html#l00056">drush_sitealias_create_self_alias()</a>, <a class="el" href="sitealias_8inc_source.html#l01842">drush_sitealias_evaluate_path()</a>, <a class="el" href="sitealias_8inc_source.html#l01701">drush_sitealias_set_alias_context()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00324">drush_sql_create()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00486">drush_sql_query()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00602">drush_sql_register_post_sync_op()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>, <a class="el" href="ssh_8drush_8inc_source.html#l00035">drush_ssh_site_ssh()</a>, <a class="el" href="exec_8inc_source.html#l00407">drush_start_browser()</a>, <a class="el" href="output_8inc_source.html#l00586">drush_table_column_autowidth()</a>, <a class="el" href="context_8inc_source.html#l00612">drush_unset_option()</a>, <a class="el" href="user_8drush_8inc_source.html#l00296">drush_user_create()</a>, <a class="el" href="user_8drush_8inc_source.html#l00367">drush_user_login()</a>, <a class="el" href="user_8drush_8inc_source.html#l00349">drush_user_password()</a>, <a class="el" href="make_8download_8inc_source.html#l00216">make_download_git()</a>, <a class="el" href="make_8drush_8inc_source.html#l00026">make_drush_command()</a>, <a class="el" href="make_8drush_8inc_source.html#l00424">make_projects()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00243">outputformat_drush_command_alter()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00047">package_handler_download_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00011">package_handler_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00049">pm_drush_help()</a>, <a class="el" href="download_8pm_8inc_source.html#l00254">pm_drush_pm_download_destination_alter()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01243">pm_parse_project_version()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00241">pm_update_packages()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00328">pm_update_project()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00407">drush_outputformat\process()</a>, <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</a>, <a class="el" href="make_8project_8inc_source.html#l00526">DrushMakeProject\recurse()</a>, <a class="el" href="shellalias_8drush_8inc_source.html#l00021">shellalias_shell_alias_complete()</a>, <a class="el" href="updatexml_8inc_source.html#l00496">updatexml_get_releases_from_xml()</a>, and <a class="el" href="usage_8drush_8inc_source.html#l00046">usage_drush_exit()</a>.</p>

</div>
</div>
<a class="anchor" id="ae7691e4635dc346aae09eb3f0bbd6092"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_context_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$flatten</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get all of the values for an option in every context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>The name of the option to get </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array whose key is the context name and value is the specific value for the option in that context. </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00507">507</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00562">_drush_get_option()</a>, <a class="el" href="context_8inc_source.html#l00074">drush_context_names()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="includes_2environment_8inc_source.html#l00441">drush_build_drush_command()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_cgraph.png" border="0" usemap="#context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_cgraph" alt=""/></div>
<map name="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_cgraph" id="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="244,5,372,35"/><area shape="rect" id="node5" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="233,59,383,88"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="244,112,372,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_icgraph.png" border="0" usemap="#context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_icgraph" alt=""/></div>
<map name="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_icgraph" id="context_8inc_ae7691e4635dc346aae09eb3f0bbd6092_icgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a8839a1aae14125ef4128d1477827ca0e" title="drush_build_drush_command" alt="" coords="233,1044,423,1073"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="472,1035,627,1082"/><area shape="rect" id="node7" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="675,717,827,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="697,1371,804,1400"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1404,125,1545,155"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="905,664,1055,693"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="911,717,1049,747"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="907,771,1053,800"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="897,824,1063,853"/><area shape="rect" id="node19" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="901,877,1059,907"/><area shape="rect" id="node21" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="903,1087,1057,1134"/><area shape="rect" id="node33" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="900,984,1060,1013"/><area shape="rect" id="node35" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1179,585,1285,615"/><area shape="rect" id="node37" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="907,611,1053,640"/><area shape="rect" id="node40" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="909,1157,1051,1187"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="892,1211,1068,1240"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="889,1264,1071,1293"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="875,1317,1085,1347"/><area shape="rect" id="node48" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="904,5,1056,35"/><area shape="rect" id="node50" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="920,59,1040,88"/><area shape="rect" id="node52" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="897,111,1063,158"/><area shape="rect" id="node54" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1147,951,1317,998"/><area shape="rect" id="node58" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1380,440,1569,469"/><area shape="rect" id="node60" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="877,931,1083,960"/><area shape="rect" id="node63" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="912,370,1048,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="912,231,1048,278"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="901,490,1059,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="899,301,1061,347"/><area shape="rect" id="node23" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1157,1087,1307,1134"/><area shape="rect" id="node25" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1401,1149,1548,1179"/><area shape="rect" id="node29" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1415,1043,1535,1072"/><area shape="rect" id="node31" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1405,1096,1544,1125"/><area shape="rect" id="node27" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1632,1149,1792,1179"/><area shape="rect" id="node56" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1431,960,1519,989"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1149,301,1315,347"/><area shape="rect" id="node69" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1161,370,1303,417"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1404,317,1545,347"/><area shape="rect" id="node72" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1389,370,1560,417"/><area shape="rect" id="node74" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1637,370,1787,417"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1151,231,1313,278"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1407,247,1543,294"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1408,178,1541,225"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1133,499,1331,528"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1400,499,1549,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1620,499,1804,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="933,1371,1027,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="892,1424,1068,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1149,1424,1315,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a72dfb89d6a4ba0bb143e3256f997d2b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_merged_options </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieves a collapsed list of all options. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00530">530</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00074">drush_context_names()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>, and <a class="el" href="context_8inc_source.html#l00547">drush_get_merged_prefixed_options()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_cgraph.png" border="0" usemap="#context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_cgraph" alt=""/></div>
<map name="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_cgraph" id="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="233,5,383,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="244,59,372,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_icgraph.png" border="0" usemap="#context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_icgraph" alt=""/></div>
<map name="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_icgraph" id="context_8inc_a72dfb89d6a4ba0bb143e3256f997d2b8_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="248,59,400,88"/><area shape="rect" id="node9" href="context_8inc.html#ae6fa58943e3805a7da54f0bf63ea178e" title="drush_get_merged_prefixed\l_options" alt="" coords="233,111,415,158"/><area shape="rect" id="node5" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="485,5,603,35"/><area shape="rect" id="node7" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="484,59,604,88"/><area shape="rect" id="node11" href="sitealias_8inc.html#aca2060ec070c0f877ab7b8b1660de215" title="drush_sitealias_overlay\l_options" alt="" coords="465,111,623,158"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae6fa58943e3805a7da54f0bf63ea178e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_merged_prefixed_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$prefix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieves a collapsed list of all options with a specified prefix. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00547">547</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00530">drush_get_merged_options()</a>.</p>

<p>Referenced by <a class="el" href="sitealias_8inc_source.html#l01664">drush_sitealias_overlay_options()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_cgraph.png" border="0" usemap="#context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_cgraph" alt=""/></div>
<map name="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_cgraph" id="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8" title="drush_get_merged_options" alt="" coords="237,32,416,61"/><area shape="rect" id="node5" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="465,5,615,35"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="476,59,604,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_icgraph.png" border="0" usemap="#context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_icgraph" alt=""/></div>
<map name="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_icgraph" id="context_8inc_ae6fa58943e3805a7da54f0bf63ea178e_icgraph">
<area shape="rect" id="node3" href="sitealias_8inc.html#aca2060ec070c0f877ab7b8b1660de215" title="drush_sitealias_overlay\l_options" alt="" coords="239,5,396,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afe91fb3e5219ecb2208c3b036b1f0cb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the value for an option.</p>
<p>If the first argument is an array, then it checks whether one of the options exists and return the value of the first one found. Useful for allowing both -h and &ndash;host-name</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>The name of the option to get </td></tr>
    <tr><td class="paramname">default</td><td>Optional. The value to return if the option has not been set </td></tr>
    <tr><td class="paramname">context</td><td>Optional. The context to check for the option. If this is set, only this context will be searched. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00405">405</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00562">_drush_get_option()</a>, <a class="el" href="context_8inc_source.html#l00074">drush_context_names()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l01097">_drush_backend_generate_command()</a>, <a class="el" href="backend_8inc_source.html#l00848">_drush_backend_get_global_contexts()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00712">_drush_bootstrap_drupal_login()</a>, <a class="el" href="includes_2cache_8inc_source.html#l00041">_drush_cache_get_object()</a>, <a class="el" href="sitealias_8inc_source.html#l01344">_drush_find_local_sites_at_root()</a>, <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>, <a class="el" href="generate_8make_8inc_source.html#l00028">_drush_make_generate_get_version_options()</a>, <a class="el" href="preflight_8inc_source.html#l00274">_drush_preflight_root_uri()</a>, <a class="el" href="sitealias_8drush_8inc_source.html#l00205">_drush_sitealias_prepare_record()</a>, <a class="el" href="sitealias_8drush_8inc_source.html#l00136">_drush_sitealias_user_specified_list()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00457">_drush_sql_get_raw_table_list()</a>, <a class="el" href="includes_2command_8inc_source.html#l00535">_drush_verify_cli_options()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00551">_get_working_copy_option()</a>, <a class="el" href="make_8download_8inc_source.html#l00092">_make_download_file()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00528">_make_is_override_allowed()</a>, <a class="el" href="download_8pm_8inc_source.html#l00327">_pm_download_destination()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00123">_pm_update_core()</a>, <a class="el" href="make_8project_8inc_source.html#l00247">DrushMakeProject\applyPatches()</a>, <a class="el" href="UserSingleBase_8php_source.html#l00083">Drush\User\UserSingleBase\cancel()</a>, <a class="el" href="SqlBase_8php_source.html#l00045">Drush\Sql\SqlBase\connect()</a>, <a class="el" href="druplicon_8drush_8inc_source.html#l00019">druplicon_drush_exit()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00071">drush_archive_dump()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00310">drush_archive_restore()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00441">drush_build_drush_command()</a>, <a class="el" href="drush_8inc_source.html#l00429">drush_choice()</a>, <a class="el" href="includes_2command_8inc_source.html#l00197">drush_command()</a>, <a class="el" href="complete_8inc_source.html#l00556">drush_complete_cache_cid()</a>, <a class="el" href="config_8drush_8inc_source.html#l00403">drush_config_edit()</a>, <a class="el" href="config_8drush_8inc_source.html#l00267">drush_config_export()</a>, <a class="el" href="config_8drush_8inc_source.html#l00450">drush_config_get_object()</a>, <a class="el" href="config_8drush_8inc_source.html#l00322">drush_config_import()</a>, <a class="el" href="config_8drush_8inc_source.html#l00198">drush_config_set()</a>, <a class="el" href="core_8drush_8inc_source.html#l01174">drush_core_drupal_directory()</a>, <a class="el" href="core_8drush_8inc_source.html#l00998">drush_core_php_script()</a>, <a class="el" href="core_8drush_8inc_source.html#l00841">drush_core_quick_drupal()</a>, <a class="el" href="core_8drush_8inc_source.html#l00749">drush_core_requirements()</a>, <a class="el" href="runserver_8drush_8inc_source.html#l00061">drush_core_runserver()</a>, <a class="el" href="core_8drush_8inc_source.html#l00794">drush_core_status()</a>, <a class="el" href="drush_8inc_source.html#l01328">drush_do_command_redispatch()</a>, <a class="el" href="drush_8inc_source.html#l00721">drush_download_file()</a>, <a class="el" href="complete_8inc_source.html#l00101">drush_early_complete()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00017">drush_error_handler()</a>, <a class="el" href="output_8inc_source.html#l00097">drush_format()</a>, <a class="el" href="exec_8inc_source.html#l00090">drush_get_editor()</a>, <a class="el" href="context_8inc_source.html#l00446">drush_get_option_list()</a>, <a class="el" href="engines_8inc_source.html#l00382">drush_get_user_selected_engine()</a>, <a class="el" href="includes_2command_8inc_source.html#l00448">drush_handle_command_output()</a>, <a class="el" href="drush_8api_8php_source.html#l00241">drush_hook_pre_pm_enable()</a>, <a class="el" href="drush_8php_source.html#l00033">drush_main()</a>, <a class="el" href="make_8drush_8inc_source.html#l00185">drush_make()</a>, <a class="el" href="make_8drush_8inc_source.html#l00249">drush_make_post_make()</a>, <a class="el" href="make_8drush_8inc_source.html#l00228">drush_make_process()</a>, <a class="el" href="migrate_8d8_8drush_8inc_source.html#l00040">drush_migrate_manifest()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00198">drush_notify_allowed()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00108">drush_notify_send()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00167">drush_notify_send_audio()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00127">drush_notify_send_text()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00060">drush_notify_shutdown_error()</a>, <a class="el" href="exec_8inc_source.html#l00261">drush_os()</a>, <a class="el" href="includes_2command_8inc_source.html#l01194">drush_parse_command()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, <a class="el" href="download_8pm_8inc_source.html#l00011">drush_pm_download_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00843">drush_pm_enable_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01491">drush_pm_include_version_control()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01810">drush_pm_inject_info_file_metadata()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00718">drush_pm_list()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01188">drush_pm_post_pm_updatecode()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01102">drush_pm_releases()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00017">drush_pm_updatecode()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01175">drush_pm_updatecode_validate()</a>, <a class="el" href="updatestatus_8pm_8inc_source.html#l00014">drush_pm_updatestatus()</a>, <a class="el" href="policy_8drush_8inc_source.html#l00055">drush_policy_updatedb_validate()</a>, <a class="el" href="preflight_8inc_source.html#l00099">drush_preflight()</a>, <a class="el" href="filesystem_8inc_source.html#l00555">drush_preflight_backup_dir()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="output_8inc_source.html#l00078">drush_print_format()</a>, <a class="el" href="includes_2command_8inc_source.html#l00949">drush_process_bootstrap_to_first_arg()</a>, <a class="el" href="includes_2command_8inc_source.html#l00665">drush_redispatch_get_options()</a>, <a class="el" href="sandwich_8drush_8inc_source.html#l00215">drush_sandwich_make_me_a_sandwich()</a>, <a class="el" href="exec_8inc_source.html#l00185">drush_shell_proc_build()</a>, <a class="el" href="context_8inc_source.html#l00489">drush_sitealias_get_option()</a>, <a class="el" href="sitealias_8inc_source.html#l01672">drush_sitealias_get_path_option()</a>, <a class="el" href="sitealias_8drush_8inc_source.html#l00179">drush_sitealias_print()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00291">drush_sql_bootstrap_further()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00300">drush_sql_conf()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00346">drush_sql_dump()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00486">drush_sql_query()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>, <a class="el" href="ssh_8drush_8inc_source.html#l00035">drush_ssh_site_ssh()</a>, <a class="el" href="exec_8inc_source.html#l00407">drush_start_browser()</a>, <a class="el" href="state_8drush_8inc_source.html#l00101">drush_state_set()</a>, <a class="el" href="sync__enable_8drush_8inc_source.html#l00088">drush_sync_enable_post_sql_sync()</a>, <a class="el" href="sync__via__http_8drush_8inc_source.html#l00069">drush_sync_via_http_pre_sql_sync()</a>, <a class="el" href="test_8drush_8inc_source.html#l00110">drush_test_run()</a>, <a class="el" href="user_8drush_8inc_source.html#l00333">drush_user_cancel()</a>, <a class="el" href="user_8drush_8inc_source.html#l00296">drush_user_create()</a>, <a class="el" href="user_8drush_8inc_source.html#l00367">drush_user_login()</a>, <a class="el" href="user_8drush_8inc_source.html#l00349">drush_user_password()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00309">drush_views_analyze()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00264">drush_views_execute()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00190">drush_views_list()</a>, <a class="el" href="xkcd_8drush_8inc_source.html#l00146">drush_xkcd_display()</a>, <a class="el" href="xkcd_8drush_8inc_source.html#l00110">drush_xkcd_fetch()</a>, <a class="el" href="make_8project_8inc_source.html#l00161">DrushMakeProject\make()</a>, <a class="el" href="make_8drush_8inc_source.html#l00554">make_build_path()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00384">make_clean_tmp()</a>, <a class="el" href="make_8download_8inc_source.html#l00067">make_download_file()</a>, <a class="el" href="make_8download_8inc_source.html#l00216">make_download_git()</a>, <a class="el" href="make_8download_8inc_source.html#l00026">make_download_pm()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00438">make_error()</a>, <a class="el" href="generate_8contents_8make_8inc_source.html#l00083">make_generate_from_makefile()</a>, <a class="el" href="make_8drush_8inc_source.html#l00584">make_move_build()</a>, <a class="el" href="make_8drush_8inc_source.html#l00505">make_prepare_libraries()</a>, <a class="el" href="make_8drush_8inc_source.html#l00283">make_prepare_projects()</a>, <a class="el" href="make_8drush_8inc_source.html#l00424">make_projects()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00353">make_tmp()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00047">package_handler_download_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00181">package_handler_post_download()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00148">package_handler_update_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00011">package_handler_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01243">pm_parse_project_version()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00241">pm_update_packages()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00328">pm_update_project()</a>, <a class="el" href="backup_8inc_source.html#l00056">drush_version_control_backup\post_update()</a>, <a class="el" href="svn_8inc_source.html#l00013">drush_version_control_svn\pre_update()</a>, <a class="el" href="backup_8inc_source.html#l00013">drush_version_control_backup\pre_update()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00407">drush_outputformat\process()</a>, <a class="el" href="make_8project_8inc_source.html#l00343">DrushMakeProject\processGitInfoFiles()</a>, <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</a>, <a class="el" href="make_8project_8inc_source.html#l00526">DrushMakeProject\recurse()</a>, <a class="el" href="updatexml_8inc_source.html#l00154">release_info_print_releasenotes()</a>, <a class="el" href="backup_8inc_source.html#l00043">drush_version_control_backup\rollback()</a>, <a class="el" href="svn_8inc_source.html#l00048">drush_version_control_svn\rollback()</a>, <a class="el" href="test_8drush_8inc_source.html#l00179">simpletest_drush_run_test()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00694">sql_drush_sql_sync_sanitize()</a>, <a class="el" href="SqlBase_8php_source.html#l00365">Drush\Sql\SqlBase\su()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00093">system_watchdog()</a>, <a class="el" href="updatexml_8inc_source.html#l00467">updatexml_get_release_history_xml()</a>, <a class="el" href="usage_8drush_8inc_source.html#l00046">usage_drush_exit()</a>, <a class="el" href="xh_8drush_8inc_source.html#l00038">xh_drush_init()</a>, and <a class="el" href="xh_8drush_8inc_source.html#l00067">xh_link()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_afe91fb3e5219ecb2208c3b036b1f0cb8_cgraph.png" border="0" usemap="#context_8inc_afe91fb3e5219ecb2208c3b036b1f0cb8_cgraph" alt=""/></div>
<map name="context_8inc_afe91fb3e5219ecb2208c3b036b1f0cb8_cgraph" id="context_8inc_afe91fb3e5219ecb2208c3b036b1f0cb8_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="188,5,316,35"/><area shape="rect" id="node5" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="177,59,327,88"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="188,112,316,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ade60e65f76863ed34db22f5e7f83a150"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_option_list </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the value for an option and return it as a list. If the option in question is passed on the command line, its value should be a comma-separated list (e.g. &ndash;flag=1,2,3). If the option was set in a drushrc.php file, then its value may be either a comma-separated list or an array of values (e.g. $option['flag'] = array('1', '2', '3')).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>The name of the option to get </td></tr>
    <tr><td class="paramname">default</td><td>Optional. The value to return if the option has not been set </td></tr>
    <tr><td class="paramname">context</td><td>Optional. The context to check for the option. If this is set, only this context will be searched. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00446">446</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00615">_drush_bootstrap_drupal_configuration()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00072">_make_parse_info_file()</a>, <a class="el" href="core_8drush_8inc_source.html#l00749">drush_core_requirements()</a>, <a class="el" href="runserver_8drush_8inc_source.html#l00061">drush_core_runserver()</a>, <a class="el" href="includes_2command_8inc_source.html#l01458">drush_filename_blacklist()</a>, <a class="el" href="includes_2command_8inc_source.html#l00448">drush_handle_command_output()</a>, <a class="el" href="updatestatus_8pm_8inc_source.html#l00014">drush_pm_updatestatus()</a>, <a class="el" href="sync__enable_8drush_8inc_source.html#l00088">drush_sync_enable_post_sql_sync()</a>, and <a class="el" href="views_8d8_8drush_8inc_source.html#l00190">drush_views_list()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ade60e65f76863ed34db22f5e7f83a150_cgraph.png" border="0" usemap="#context_8inc_ade60e65f76863ed34db22f5e7f83a150_cgraph" alt=""/></div>
<map name="context_8inc_ade60e65f76863ed34db22f5e7f83a150_cgraph" id="context_8inc_ade60e65f76863ed34db22f5e7f83a150_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="201,59,321,88"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="383,5,511,35"/><area shape="rect" id="node7" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="372,59,521,88"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="383,112,511,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ade60e65f76863ed34db22f5e7f83a150_icgraph.png" border="0" usemap="#context_8inc_ade60e65f76863ed34db22f5e7f83a150_icgraph" alt=""/></div>
<map name="context_8inc_ade60e65f76863ed34db22f5e7f83a150_icgraph" id="context_8inc_ade60e65f76863ed34db22f5e7f83a150_icgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7c56e6f89536dda612fc28dc84734b70" title="_drush_bootstrap_drupal\l_configuration" alt="" coords="203,438,365,484"/><area shape="rect" id="node5" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="208,508,360,537"/><area shape="rect" id="node12" href="core_8drush_8inc.html#adebaebb0b4f27f018d98cf29420de69f" title="drush_core_requirements" alt="" coords="200,561,368,590"/><area shape="rect" id="node14" href="runserver_8drush_8inc.html#a8db8226cf620f67826b59f6091142f60" title="drush_core_runserver" alt="" coords="211,614,357,644"/><area shape="rect" id="node16" href="includes_2command_8inc.html#a835a66ae60ec33b87f477a6b3dd00547" title="drush_filename_blacklist" alt="" coords="201,668,367,697"/><area shape="rect" id="node96" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495" title="drush_handle_command\l_output" alt="" coords="203,720,365,767"/><area shape="rect" id="node102" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="204,790,364,820"/><area shape="rect" id="node104" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="201,843,367,890"/><area shape="rect" id="node106" href="views_8d8_8drush_8inc.html#a3579085e08bf50ff4595e0bcdde1e4ca" title="drush_views_list" alt="" coords="225,913,343,942"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="641,516,735,545"/><area shape="rect" id="node9" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="419,544,563,591"/><area shape="rect" id="node18" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="419,659,563,706"/><area shape="rect" id="node20" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="613,590,763,636"/><area shape="rect" id="node94" href="sitealias_8inc.html#a342a408e79400ac5ea8ee8023723cccf" title="_drush_sitealias_find\l_and_load_alias" alt="" coords="616,659,760,706"/><area shape="rect" id="node22" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="811,981,971,1010"/><area shape="rect" id="node46" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="813,590,968,636"/><area shape="rect" id="node24" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="1019,1361,1179,1390"/><area shape="rect" id="node26" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="1724,911,1871,958"/><area shape="rect" id="node30" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="1252,1260,1404,1307"/><area shape="rect" id="node32" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="1239,1330,1417,1360"/><area shape="rect" id="node34" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1249,1576,1407,1605"/><area shape="rect" id="node40" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="1263,1383,1393,1430"/><area shape="rect" id="node42" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="1267,1452,1389,1499"/><area shape="rect" id="node44" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4" title="sql_sql_sync_complete" alt="" coords="1249,1522,1407,1552"/><area shape="rect" id="node28" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1920,920,2061,949"/><area shape="rect" id="node36" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1507,1265,1645,1294"/><area shape="rect" id="node38" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1723,1212,1872,1241"/><area shape="rect" id="node48" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="1032,590,1165,636"/><area shape="rect" id="node50" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="1507,598,1645,628"/><area shape="rect" id="node52" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="1259,792,1397,821"/><area shape="rect" id="node54" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1260,844,1396,891"/><area shape="rect" id="node56" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="1252,914,1404,944"/><area shape="rect" id="node58" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="1251,967,1405,1014"/><area shape="rect" id="node60" href="includes_2command_8inc.html#a019118f49079e478cd35ca8eb17998c1" title="drush_process_bootstrap\l_to_first_arg" alt="" coords="1244,1036,1412,1083"/><area shape="rect" id="node62" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="1243,50,1413,80"/><area shape="rect" id="node65" href="sitealias_8inc.html#a49c2ae562dfc96846a235e521c945a20" title="drush_sitealias_create\l_self_alias" alt="" coords="1252,103,1404,150"/><area shape="rect" id="node67" href="sitealias_8inc.html#a0dd349885b59373b8a067d7589d096e7" title="drush_sitealias_resolve\l_sitespecs" alt="" coords="1497,680,1655,727"/><area shape="rect" id="node70" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1257,172,1399,219"/><area shape="rect" id="node73" href="sitealias_8inc.html#a09f500deb9e45e97098a37a4caa374ee" title="drush_sitealias_is\l_bootstrapped_site" alt="" coords="1263,242,1393,288"/><area shape="rect" id="node75" href="sitealias_8inc.html#a5437d4bdf307bcc37cd15e903b3d99a9" title="drush_sitealias_is\l_remote_site" alt="" coords="1265,311,1391,358"/><area shape="rect" id="node77" href="sitealias_8inc.html#a0c03b431ce6b8291d85dfd206e516159" title="drush_sitealias_bootstrapped\l_site_name" alt="" coords="1233,431,1423,478"/><area shape="rect" id="node79" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="1249,620,1407,667"/><area shape="rect" id="node83" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1491,371,1661,418"/><area shape="rect" id="node87" href="sitealias_8inc.html#a276a2325cb18922b6d365c13a6ed7d66" title="_drush_sitealias_set\l_context_by_name" alt="" coords="1257,500,1399,547"/><area shape="rect" id="node89" href="sitealias_8inc.html#aba0142245fe1b01f094d42fb060391b1" title="_drush_sitealias_preflight_path" alt="" coords="1228,1106,1428,1136"/><area shape="rect" id="node91" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1477,928,1675,957"/><area shape="rect" id="node98" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="417,729,564,758"/><area shape="rect" id="node100" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="629,729,747,758"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a559008f6decb23108b83e704208e415e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_option_override </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option_overrides</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the value for an option, but first checks the provided option overrides.</p>
<p>The feature of drush_get_option that allows a list of option names to be passed in an array is NOT supported.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option_overrides</td><td>An array to check for values before calling drush_get_option. </td></tr>
    <tr><td class="paramname">option</td><td>The name of the option to get. </td></tr>
    <tr><td class="paramname">default</td><td>Optional. The value to return if the option has not been set. </td></tr>
    <tr><td class="paramname">context</td><td>Optional. The context to check for the option. If this is set, only this context will be searched. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00472">472</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00489">drush_sitealias_get_option()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>, <a class="el" href="includes_2command_8inc_source.html#l00102">drush_invoke_process()</a>, and <a class="el" href="sitealias_8inc_source.html#l01842">drush_sitealias_evaluate_path()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a559008f6decb23108b83e704208e415e_cgraph.png" border="0" usemap="#context_8inc_a559008f6decb23108b83e704208e415e_cgraph" alt=""/></div>
<map name="context_8inc_a559008f6decb23108b83e704208e415e_cgraph" id="context_8inc_a559008f6decb23108b83e704208e415e_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#add3af7aa09b1ccf49718577a8d7aa61d" title="drush_sitealias_get\l_option" alt="" coords="231,50,364,97"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="415,59,535,88"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="596,5,724,35"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="585,59,735,88"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="596,112,724,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a559008f6decb23108b83e704208e415e_icgraph.png" border="0" usemap="#context_8inc_a559008f6decb23108b83e704208e415e_icgraph" alt=""/></div>
<map name="context_8inc_a559008f6decb23108b83e704208e415e_icgraph" id="context_8inc_a559008f6decb23108b83e704208e415e_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="229,729,392,759"/><area shape="rect" id="node7" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="643,755,795,784"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1101,1476,1299,1505"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="440,717,595,763"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="665,59,772,88"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1372,1237,1513,1267"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="873,251,1023,280"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="879,304,1017,333"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="875,357,1021,387"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="865,411,1031,440"/><area shape="rect" id="node19" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="869,464,1027,493"/><area shape="rect" id="node21" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="871,181,1025,227"/><area shape="rect" id="node33" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="868,571,1028,600"/><area shape="rect" id="node35" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1147,877,1253,907"/><area shape="rect" id="node37" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="875,675,1021,704"/><area shape="rect" id="node40" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="877,728,1019,757"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="860,781,1036,811"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="857,835,1039,864"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="843,888,1053,917"/><area shape="rect" id="node48" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="872,941,1024,971"/><area shape="rect" id="node50" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="888,995,1008,1024"/><area shape="rect" id="node52" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="865,1047,1031,1094"/><area shape="rect" id="node54" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1115,562,1285,609"/><area shape="rect" id="node58" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1348,1115,1537,1144"/><area shape="rect" id="node60" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="845,517,1051,547"/><area shape="rect" id="node63" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="880,1269,1016,1315"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="880,1338,1016,1385"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="869,1407,1027,1454"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="867,111,1029,158"/><area shape="rect" id="node23" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1125,181,1275,227"/><area shape="rect" id="node25" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1369,243,1516,272"/><area shape="rect" id="node29" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1383,136,1503,165"/><area shape="rect" id="node31" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1373,189,1512,219"/><area shape="rect" id="node27" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1600,243,1760,272"/><area shape="rect" id="node56" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1399,571,1487,600"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1117,1393,1283,1439"/><area shape="rect" id="node69" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1129,1167,1271,1214"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1372,1429,1513,1459"/><area shape="rect" id="node72" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1357,1167,1528,1214"/><area shape="rect" id="node74" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1605,1167,1755,1214"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1119,1297,1281,1343"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1375,1359,1511,1406"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1376,1290,1509,1337"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1368,1483,1517,1512"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1588,1483,1772,1512"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="901,59,995,88"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="860,5,1036,35"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1117,5,1283,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0cc90f947ca5cfe0ee524a4e76298bac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_load_config </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Load drushrc files (if available) from several possible locations. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00148">148</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00096">_drush_config_file()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00452">_drush_bootstrap_drupal_root()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00601">_drush_bootstrap_drupal_site()</a>, and <a class="el" href="preflight_8inc_source.html#l00099">drush_preflight()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_cgraph.png" border="0" usemap="#context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_cgraph" alt=""/></div>
<map name="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_cgraph" id="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#a4eb577b3ff1b1c25213a74cb5813b42f" title="_drush_config_file" alt="" coords="183,32,308,61"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="361,5,489,35"/><area shape="rect" id="node7" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="357,59,493,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_icgraph.png" border="0" usemap="#context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_icgraph" alt=""/></div>
<map name="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_icgraph" id="context_8inc_a0cc90f947ca5cfe0ee524a4e76298bac_icgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#aaf2547972243d700b69f6ca272691cda" title="_drush_bootstrap_drupal_root" alt="" coords="183,5,375,35"/><area shape="rect" id="node5" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a8be8f9d6b7c4854ff3167e9005ae5e1e" title="_drush_bootstrap_drupal_site" alt="" coords="183,59,375,88"/><area shape="rect" id="node7" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="225,112,332,141"/><area shape="rect" id="node9" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="480,16,568,45"/><area shape="rect" id="node11" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="425,69,623,115"/><area shape="rect" id="node13" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="439,138,609,185"/><area shape="rect" id="node15" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="428,207,620,254"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa29a91479997d413029f14ac5fbd7e94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_save_config </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Save the settings in a specific context to the applicable configuration file This is useful is you want certain settings to be available automatically the next time a command is executed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$context</td><td>The context to save </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00635">635</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00096">_drush_config_file()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_aa29a91479997d413029f14ac5fbd7e94_cgraph.png" border="0" usemap="#context_8inc_aa29a91479997d413029f14ac5fbd7e94_cgraph" alt=""/></div>
<map name="context_8inc_aa29a91479997d413029f14ac5fbd7e94_cgraph" id="context_8inc_aa29a91479997d413029f14ac5fbd7e94_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#a4eb577b3ff1b1c25213a74cb5813b42f" title="_drush_config_file" alt="" coords="185,26,311,55"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="831,155,959,184"/><area shape="rect" id="node10" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="413,130,491,159"/><area shape="rect" id="node16" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="192,182,304,211"/><area shape="rect" id="node23" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="229,290,267,319"/><area shape="rect" id="node7" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="384,26,520,55"/><area shape="rect" id="node13" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="593,180,748,210"/><area shape="rect" id="node19" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="361,284,543,314"/><area shape="rect" id="node25" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="385,337,519,384"/><area shape="rect" id="node27" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="599,315,743,344"/><area shape="rect" id="node29" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="797,315,992,344"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ade90fc1aa9c39a740a20c2bf1cb97c25"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_arguments </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$arguments</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the arguments passed to the <a class="el" href="drush_8php.html">drush.php</a> script.</p>
<p>This function will set the 'arguments' context of the current running script.</p>
<p>When initially called by drush_parse_args, the entire list of arguments will be populated. Once the command is dispatched, this will be set to only the remaining arguments to the command (i.e. the command name is removed).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arguments</td><td>Command line arguments, as an array. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00352">352</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>, <a class="el" href="includes_2command_8inc_source.html#l00838">drush_shift()</a>, and <a class="el" href="sitealias_8inc_source.html#l00020">drush_sitealias_check_arg()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_cgraph.png" border="0" usemap="#context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_cgraph" alt=""/></div>
<map name="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_cgraph" id="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="201,5,329,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="380,5,508,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_icgraph.png" border="0" usemap="#context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_icgraph" alt=""/></div>
<map name="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_icgraph" id="context_8inc_ade90fc1aa9c39a740a20c2bf1cb97c25_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="225,104,351,133"/><area shape="rect" id="node25" href="includes_2command_8inc.html#a069157c844a772c6fc1c5c7e63f1b613" title="drush_shift" alt="" coords="245,157,331,187"/><area shape="rect" id="node27" href="sitealias_8inc.html#aea0a6ddf95752b4958fc14698a8db017" title="drush_sitealias_check_arg" alt="" coords="200,51,376,80"/><area shape="rect" id="node5" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="425,51,623,80"/><area shape="rect" id="node9" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="445,159,603,188"/><area shape="rect" id="node13" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="439,104,609,133"/><area shape="rect" id="node7" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="685,48,835,77"/><area shape="rect" id="node11" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="673,154,847,201"/><area shape="rect" id="node15" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="707,101,813,131"/><area shape="rect" id="node17" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="952,5,1040,35"/><area shape="rect" id="node19" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="897,58,1095,105"/><area shape="rect" id="node21" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="911,127,1081,174"/><area shape="rect" id="node23" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="900,197,1092,243"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af37b8df12a8fc3bf25b173d420a11203"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_command </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the command being executed.</p>
<p>Drush_dispatch will set the correct command based on it's matching of the script arguments retrieved from drush_get_arguments to the implemented commands specified by drush_get_commands.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">A</td><td>numerically indexed array of command components. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00380">380</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>.</p>

<p>Referenced by <a class="el" href="complete_8inc_source.html#l00228">drush_complete_process_argv()</a>, <a class="el" href="includes_2command_8inc_source.html#l00148">drush_dispatch()</a>, and <a class="el" href="includes_2command_8inc_source.html#l01194">drush_parse_command()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_af37b8df12a8fc3bf25b173d420a11203_cgraph.png" border="0" usemap="#context_8inc_af37b8df12a8fc3bf25b173d420a11203_cgraph" alt=""/></div>
<map name="context_8inc_af37b8df12a8fc3bf25b173d420a11203_cgraph" id="context_8inc_af37b8df12a8fc3bf25b173d420a11203_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="199,5,327,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="377,5,505,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_af37b8df12a8fc3bf25b173d420a11203_icgraph.png" border="0" usemap="#context_8inc_af37b8df12a8fc3bf25b173d420a11203_icgraph" alt=""/></div>
<map name="context_8inc_af37b8df12a8fc3bf25b173d420a11203_icgraph" id="context_8inc_af37b8df12a8fc3bf25b173d420a11203_icgraph">
<area shape="rect" id="node3" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="199,19,396,48"/><area shape="rect" id="node7" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="243,99,352,128"/><area shape="rect" id="node19" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="219,177,376,207"/><area shape="rect" id="node5" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="449,5,599,35"/><area shape="rect" id="node9" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="447,59,601,88"/><area shape="rect" id="node11" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="475,112,573,141"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="672,19,837,48"/><area shape="rect" id="node15" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="692,72,817,101"/><area shape="rect" id="node17" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="679,125,831,155"/><area shape="rect" id="node21" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="911,191,1081,238"/><area shape="rect" id="node25" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="451,301,597,347"/><area shape="rect" id="node23" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1173,200,1261,229"/><area shape="rect" id="node27" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="681,283,828,312"/><area shape="rect" id="node31" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="701,336,808,365"/><area shape="rect" id="node39" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="695,389,815,419"/><area shape="rect" id="node41" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="660,443,849,472"/><area shape="rect" id="node43" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="652,229,857,259"/><area shape="rect" id="node29" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="943,283,1049,312"/><area shape="rect" id="node33" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="949,336,1043,365"/><area shape="rect" id="node35" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="908,389,1084,419"/><area shape="rect" id="node37" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1135,389,1300,419"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a16a51c5b09d64e968c3bd7ec414b8846"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_config_special_contexts </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>There are certain options such as 'site-aliases' and 'command-specific' that must be merged together if defined in multiple drush configuration files. If we did not do this merge, then the last configuration file that defined any of these properties would overwrite all of the options that came before in previously-loaded configuration files. We place all of them into their own context so that this does not happen. </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00223">223</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01506">drush_command_default_options()</a>, <a class="el" href="context_8inc_source.html#l00197">drush_expand_short_form_options()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="drush_8inc_source.html#l00255">drush_get_global_options()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>, and <a class="el" href="sitealias_8inc_source.html#l00472">drush_sitealias_load_all()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_cgraph.png" border="0" usemap="#context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_cgraph" alt=""/></div>
<map name="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_cgraph" id="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="415,5,577,51"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1289,73,1417,103"/><area shape="rect" id="node7" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="224,125,363,171"/><area shape="rect" id="node9" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="412,156,580,185"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="629,147,792,194"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="840,156,1032,185"/><area shape="rect" id="node15" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1084,125,1236,155"/><area shape="rect" id="node17" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1081,179,1239,208"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_icgraph.png" border="0" usemap="#context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_icgraph" alt=""/></div>
<map name="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_icgraph" id="context_8inc_a16a51c5b09d64e968c3bd7ec414b8846_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="241,116,367,145"/><area shape="rect" id="node25" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="224,296,384,325"/><area shape="rect" id="node5" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="433,28,631,57"/><area shape="rect" id="node9" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="453,86,611,116"/><area shape="rect" id="node13" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="447,144,617,173"/><area shape="rect" id="node7" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1155,208,1304,237"/><area shape="rect" id="node11" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="683,75,856,122"/><area shape="rect" id="node15" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="716,145,823,174"/><area shape="rect" id="node17" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="963,76,1051,105"/><area shape="rect" id="node19" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="908,128,1105,175"/><area shape="rect" id="node21" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="921,198,1092,244"/><area shape="rect" id="node23" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="911,267,1103,314"/><area shape="rect" id="node27" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="452,364,612,393"/><area shape="rect" id="node29" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="696,198,843,244"/><area shape="rect" id="node33" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="693,267,845,314"/><area shape="rect" id="node35" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="680,337,859,366"/><area shape="rect" id="node37" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="691,390,848,420"/><area shape="rect" id="node42" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="704,443,835,490"/><area shape="rect" id="node44" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="708,512,831,559"/><area shape="rect" id="node46" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4" title="sql_sql_sync_complete" alt="" coords="691,582,848,612"/><area shape="rect" id="node31" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="936,337,1077,366"/><area shape="rect" id="node39" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="937,390,1076,420"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af983acfe90e7d7bbdbd67c57f93708ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_context </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set a specific context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>Any of the default defined contexts. </td></tr>
    <tr><td class="paramname">value</td><td>The value to store in the context</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An associative array of the settings specified in the request context. </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00293">293</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00584">_drush_bootstrap_do_drupal_site()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00712">_drush_bootstrap_drupal_login()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00452">_drush_bootstrap_drupal_root()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00515">_drush_bootstrap_drupal_site_validate()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00488">_drush_bootstrap_selected_uri()</a>, <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>, <a class="el" href="preflight_8inc_source.html#l00244">_drush_preflight_base_environment()</a>, <a class="el" href="preflight_8inc_source.html#l00274">_drush_preflight_root_uri()</a>, <a class="el" href="sitealias_8inc_source.html#l00493">_drush_sitealias_find_and_load_all_aliases()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00123">_pm_update_core()</a>, <a class="el" href="includes_2command_8inc_source.html#l00882">drush_adjust_args_if_shebang_script()</a>, <a class="el" href="backend_8inc_source.html#l00533">drush_backend_parse_packets()</a>, <a class="el" href="backend_8inc_source.html#l00084">drush_backend_set_result()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00170">drush_bootstrap()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00378">drush_bootstrap_error()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00250">drush_bootstrap_validate()</a>, <a class="el" href="drush_8inc_source.html#l01788">drush_clear_error()</a>, <a class="el" href="complete_8inc_source.html#l00228">drush_complete_process_argv()</a>, <a class="el" href="core_8drush_8inc_source.html#l00998">drush_core_php_script()</a>, <a class="el" href="core_8drush_8inc_source.html#l00841">drush_core_quick_drupal()</a>, <a class="el" href="runserver_8drush_8inc_source.html#l00061">drush_core_runserver()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00115">drush_cwd()</a>, <a class="el" href="complete_8inc_source.html#l00101">drush_early_complete()</a>, <a class="el" href="drush_8inc_source.html#l01834">drush_errors_on()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00462">drush_hide_output_fields()</a>, <a class="el" href="engines_8inc_source.html#l00146">drush_load_command_engine()</a>, <a class="el" href="drush_8php_source.html#l00033">drush_main()</a>, <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00843">drush_pm_enable_validate()</a>, <a class="el" href="policy_8drush_8inc_source.html#l00055">drush_policy_updatedb_validate()</a>, <a class="el" href="preflight_8inc_source.html#l00323">drush_postflight()</a>, <a class="el" href="preflight_8inc_source.html#l00099">drush_preflight()</a>, <a class="el" href="filesystem_8inc_source.html#l00555">drush_preflight_backup_dir()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, <a class="el" href="preflight_8inc_source.html#l00016">drush_preflight_prepare()</a>, <a class="el" href="context_8inc_source.html#l00352">drush_set_arguments()</a>, <a class="el" href="context_8inc_source.html#l00380">drush_set_command()</a>, <a class="el" href="engines_8inc_source.html#l00514">drush_set_engine()</a>, <a class="el" href="includes_2command_8inc_source.html#l01722">drush_shell_alias_replace()</a>, <a class="el" href="includes_2command_8inc_source.html#l00838">drush_shift()</a>, <a class="el" href="sitealias_8inc_source.html#l00020">drush_sitealias_check_arg()</a>, <a class="el" href="sitealias_8inc_source.html#l01842">drush_sitealias_evaluate_path()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00602">drush_sql_register_post_sync_op()</a>, <a class="el" href="ssh_8drush_8inc_source.html#l00035">drush_ssh_site_ssh()</a>, <a class="el" href="drush_8inc_source.html#l01797">drush_user_abort()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00011">package_handler_validate()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00328">pm_update_project()</a>, <a class="el" href="commandUnitTest_8php_source.html#l00009">Unish\commandUnitCase\testCommandVersionSpecific()</a>, <a class="el" href="tablesUnitTest_8php_source.html#l00038">Unish\tablesUnitTest\testFormatAutoWidths()</a>, <a class="el" href="tablesUnitTest_8php_source.html#l00091">Unish\tablesUnitTest\testFormatTableHeader()</a>, <a class="el" href="tablesUnitTest_8php_source.html#l00105">Unish\tablesUnitTest\testFormatTableWordWrap()</a>, and <a class="el" href="tablesUnitTest_8php_source.html#l00066">Unish\tablesUnitTest\testFormatWidths()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_af983acfe90e7d7bbdbd67c57f93708ba_cgraph.png" border="0" usemap="#context_8inc_af983acfe90e7d7bbdbd67c57f93708ba_cgraph" alt=""/></div>
<map name="context_8inc_af983acfe90e7d7bbdbd67c57f93708ba_cgraph" id="context_8inc_af983acfe90e7d7bbdbd67c57f93708ba_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="185,5,313,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad552fe78011c544abadf05b2dfbe4e7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_default </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A small helper function to set the value in the default context </p>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00600">600</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00591">drush_set_option()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_ad552fe78011c544abadf05b2dfbe4e7f_cgraph.png" border="0" usemap="#context_8inc_ad552fe78011c544abadf05b2dfbe4e7f_cgraph" alt=""/></div>
<map name="context_8inc_ad552fe78011c544abadf05b2dfbe4e7f_cgraph" id="context_8inc_ad552fe78011c544abadf05b2dfbe4e7f_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="180,5,300,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="351,5,479,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa4b55e2f6174c8b6efaa8f23a0f9e0af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_set_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>'process'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set an option in one of the option contexts.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option</td><td>The option to set. </td></tr>
    <tr><td class="paramname">value</td><td>The value to set it to. </td></tr>
    <tr><td class="paramname">context</td><td>Optional. Which context to set it in. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value parameter. This allows for neater code such as $myvalue = drush_set_option('http_host', $_SERVER['HTTP_HOST']); Without having to constantly type out the value parameter. </dd></dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00591">591</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="commands_2core_2drupal_2batch_8inc_source.html#l00215">_drush_batch_finished()</a>, <a class="el" href="includes_2command_8inc_source.html#l00882">drush_adjust_args_if_shebang_script()</a>, <a class="el" href="core_8drush_8inc_source.html#l00841">drush_core_quick_drupal()</a>, <a class="el" href="complete_8inc_source.html#l00101">drush_early_complete()</a>, <a class="el" href="download_8pm_8inc_source.html#l00011">drush_pm_download_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01154">drush_pm_update()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00017">drush_pm_updatecode()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, <a class="el" href="context_8inc_source.html#l00600">drush_set_default()</a>, <a class="el" href="sitealias_8inc_source.html#l01842">drush_sitealias_evaluate_path()</a>, <a class="el" href="sync__via__http_8drush_8inc_source.html#l00069">drush_sync_via_http_pre_sql_sync()</a>, <a class="el" href="usage_8drush_8inc_source.html#l00064">drush_usage_send()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00014">make_parse_info_file()</a>, <a class="el" href="make_8drush_8inc_source.html#l00505">make_prepare_libraries()</a>, <a class="el" href="make_8drush_8inc_source.html#l00283">make_prepare_projects()</a>, and <a class="el" href="make_8drush_8inc_source.html#l00424">make_projects()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_cgraph.png" border="0" usemap="#context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_cgraph" alt=""/></div>
<map name="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_cgraph" id="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="177,5,305,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_icgraph.png" border="0" usemap="#context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_icgraph" alt=""/></div>
<map name="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_icgraph" id="context_8inc_aa4b55e2f6174c8b6efaa8f23a0f9e0af_icgraph">
<area shape="rect" id="node3" href="commands_2core_2drupal_2batch_8inc.html#a1e3ba040027e50c90258295d7a70aec0" title="_drush_batch_finished" alt="" coords="199,5,351,35"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1" title="drush_adjust_args_if\l_shebang_script" alt="" coords="204,131,345,178"/><area shape="rect" id="node17" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="903,76,1052,105"/><area shape="rect" id="node35" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="192,252,357,281"/><area shape="rect" id="node38" href="download_8pm_8inc.html#aa785bd2402492043b9acaee375c8ceeb" title="drush_pm_download_validate" alt="" coords="179,305,371,335"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="212,359,337,388"/><area shape="rect" id="node42" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="199,412,351,441"/><area shape="rect" id="node44" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="421,237,592,283"/><area shape="rect" id="node47" href="context_8inc.html#ad552fe78011c544abadf05b2dfbe4e7f" title="drush_set_default" alt="" coords="212,465,337,495"/><area shape="rect" id="node49" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="176,519,373,548"/><area shape="rect" id="node55" href="sync__via__http_8drush_8inc.html#af6ab20694d94fb5c16ec975eb0b5aa0d" title="drush_sync_via_http\l_pre_sql_sync" alt="" coords="204,571,345,618"/><area shape="rect" id="node57" href="usage_8drush_8inc.html#a315af941461f0a0d3b4ec1c5063d94ac" title="drush_usage_send" alt="" coords="209,641,340,671"/><area shape="rect" id="node59" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="203,695,347,724"/><area shape="rect" id="node73" href="make_8drush_8inc.html#a0c50fe5a34ad09671d175614fc27e485" title="make_prepare_libraries" alt="" coords="197,748,352,777"/><area shape="rect" id="node79" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="196,801,353,831"/><area shape="rect" id="node82" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="453,853,560,883"/><area shape="rect" id="node5" href="commands_2core_2drupal_2batch_8inc.html#afa58efbd11be795ce39d4d14f4ac35e0" title="_drush_batch_command" alt="" coords="425,5,588,35"/><area shape="rect" id="node7" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="661,5,819,35"/><area shape="rect" id="node9" href="core_8drush_8inc.html#abffb38d0c5a78975e70033cb09f57ecb" title="drush_core_batch_process" alt="" coords="888,5,1067,35"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="444,151,569,180"/><area shape="rect" id="node15" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="641,109,839,139"/><area shape="rect" id="node19" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="661,163,819,192"/><area shape="rect" id="node23" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="655,216,825,245"/><area shape="rect" id="node21" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="891,146,1064,193"/><area shape="rect" id="node25" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="924,216,1031,245"/><area shape="rect" id="node27" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1171,277,1259,307"/><area shape="rect" id="node29" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="1116,69,1313,115"/><area shape="rect" id="node31" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="1129,138,1300,185"/><area shape="rect" id="node33" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="1119,207,1311,254"/><area shape="rect" id="node51" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="432,519,581,548"/><area shape="rect" id="node53" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="648,519,832,548"/><area shape="rect" id="node61" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="431,595,583,624"/><area shape="rect" id="node65" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="668,670,812,717"/><area shape="rect" id="node69" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="652,800,828,829"/><area shape="rect" id="node63" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="931,743,1024,772"/><area shape="rect" id="node71" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="895,800,1060,829"/><area shape="rect" id="node75" href="make_8drush_8inc.html#ae70f3ae23a4dcbb5f8816636d2adb4c2" title="make_libraries" alt="" coords="453,800,560,829"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="add3af7aa09b1ccf49718577a8d7aa61d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sitealias_get_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_alias_record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$prefix</em> = <code>''</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get an option out of the specified alias. If it has not been set in the alias, then get it via drush_get_option.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">site_alias_record</td><td>An array of options for an alias record. </td></tr>
    <tr><td class="paramname">option</td><td>The name of the option to get. </td></tr>
    <tr><td class="paramname">default</td><td>Optional. The value to return if the option does not exist in the site record and has not been set in a context. </td></tr>
    <tr><td class="paramname">context</td><td>Optional. The context to check for the option. If this is set, only this context will be searched. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00489">489</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="context_8inc_source.html#l00472">drush_get_option_override()</a>, <a class="el" href="exec_8inc_source.html#l00281">drush_remote_host()</a>, <a class="el" href="exec_8inc_source.html#l00185">drush_shell_proc_build()</a>, and <a class="el" href="sitealias_8inc_source.html#l00863">drush_sitealias_get_db_spec()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_cgraph.png" border="0" usemap="#context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_cgraph" alt=""/></div>
<map name="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_cgraph" id="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="191,59,311,88"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="372,5,500,35"/><area shape="rect" id="node7" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="361,59,511,88"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="372,112,500,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_icgraph.png" border="0" usemap="#context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_icgraph" alt=""/></div>
<map name="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_icgraph" id="context_8inc_add3af7aa09b1ccf49718577a8d7aa61d_icgraph">
<area shape="rect" id="node3" href="context_8inc.html#a559008f6decb23108b83e704208e415e" title="drush_get_option_override" alt="" coords="191,1325,364,1355"/><area shape="rect" id="node76" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1584,1413,1717,1459"/><area shape="rect" id="node97" href="group__commandwrappers.html#gae0975650ba125212c2666e58729f43cf" title="drush_remote_host" alt="" coords="211,1603,344,1632"/><area shape="rect" id="node99" href="group__commandwrappers.html#ga78a7ff5045fa4fc20c8e24dd2ba8d777" title="drush_shell_proc_build" alt="" coords="417,1680,572,1709"/><area shape="rect" id="node5" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="413,1175,576,1204"/><area shape="rect" id="node9" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="851,697,1003,727"/><area shape="rect" id="node81" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1309,1579,1507,1608"/><area shape="rect" id="node7" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="636,1162,791,1209"/><area shape="rect" id="node89" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="873,1421,980,1451"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1580,449,1721,479"/><area shape="rect" id="node13" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1081,453,1231,483"/><area shape="rect" id="node15" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1087,507,1225,536"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1083,560,1229,589"/><area shape="rect" id="node19" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1073,613,1239,643"/><area shape="rect" id="node21" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1077,667,1235,696"/><area shape="rect" id="node23" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1079,5,1233,51"/><area shape="rect" id="node29" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1076,789,1236,819"/><area shape="rect" id="node31" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1355,305,1461,335"/><area shape="rect" id="node33" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1083,331,1229,360"/><area shape="rect" id="node36" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1085,843,1227,872"/><area shape="rect" id="node38" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1068,896,1244,925"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="1065,949,1247,979"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="1051,1003,1261,1032"/><area shape="rect" id="node44" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1080,1056,1232,1085"/><area shape="rect" id="node46" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1096,1109,1216,1139"/><area shape="rect" id="node48" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="1073,1162,1239,1209"/><area shape="rect" id="node50" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1323,91,1493,138"/><area shape="rect" id="node54" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1556,287,1745,316"/><area shape="rect" id="node56" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1053,75,1259,104"/><area shape="rect" id="node59" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1088,719,1224,766"/><area shape="rect" id="node70" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="1088,1282,1224,1329"/><area shape="rect" id="node78" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1077,1351,1235,1398"/><area shape="rect" id="node87" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="1075,383,1237,430"/><area shape="rect" id="node25" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1333,5,1483,51"/><area shape="rect" id="node27" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1577,13,1724,43"/><area shape="rect" id="node52" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1607,100,1695,129"/><area shape="rect" id="node61" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1325,1247,1491,1294"/><area shape="rect" id="node63" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1337,719,1479,766"/><area shape="rect" id="node66" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1565,719,1736,766"/><area shape="rect" id="node68" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1813,719,1963,766"/><area shape="rect" id="node73" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1327,1317,1489,1363"/><area shape="rect" id="node83" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1576,1579,1725,1608"/><area shape="rect" id="node85" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1796,1579,1980,1608"/><area shape="rect" id="node91" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1109,1421,1203,1451"/><area shape="rect" id="node93" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1068,1475,1244,1504"/><area shape="rect" id="node101" href="core_8drush_8inc.html#a056266865af8fe0a2178f1b6cd36dea1" title="_drush_core_execute_cmd" alt="" coords="624,1680,803,1709"/><area shape="rect" id="node105" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="644,1733,783,1763"/><area shape="rect" id="node103" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="857,1680,996,1709"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2d9c3fdcab304aaf56293d3881e98a9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_unset_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Remove a setting from a specific context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Option</td><td>to be unset </td></tr>
    <tr><td class="paramname">Context</td><td>in which to unset the value in. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="context_8inc_source.html#l00612">612</a> of file <a class="el" href="context_8inc_source.html">context.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00074">drush_context_names()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l00841">drush_core_quick_drupal()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_cgraph.png" border="0" usemap="#context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_cgraph" alt=""/></div>
<map name="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_cgraph" id="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="191,5,340,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="201,59,329,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_icgraph.png" border="0" usemap="#context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_icgraph" alt=""/></div>
<map name="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_icgraph" id="context_8inc_a2d9c3fdcab304aaf56293d3881e98a9a_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="191,5,356,35"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:59 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>