Drush: includes/drush.inc File Reference

  1. 7.x doxygen/html/drush_8inc.html
  2. master doxygen/html/drush_8inc.html
drush.inc File Reference

Go to the source code of this file.

Functions

 drush_include ($path, $name, $version=NULL, $extension= 'inc')
 drush_get_class ($class_name, $constructor_args=array(), $variations=array())
 drush_export_ini ($ini)
 drush_export_info ($info, $integer_keys=FALSE, $parents=array())
 _convert_csv_to_array ($args)
 drush_flatten_array ($a)
 drush_get_global_options ($brief=FALSE)
 drush_die ($msg=NULL, $status=NULL)
 _drush_is_drush_shebang_line ($line)
 _drush_is_drush_shebang_script ($script_filename)
 drush_confirm ($msg, $indent=0)
 drush_choice ($options, $prompt= 'Enter a number.', $label= '!value', $widths=array())
 drush_choice_multiple ($options, $defaults=FALSE, $prompt= 'Select some numbers.', $label= '!value', $mark= '!value(selected)', $min=0, $max=NULL, $final_options=array())
 drush_prompt ($prompt, $default=NULL, $required=TRUE, $password=FALSE)
 drush_op ($function)
 drush_call_user_func_array ($function, $args=array())
 drush_download_file ($url, $destination=FALSE, $cache_duration=0)
 drush_download_file_name ($url)
 _drush_is_url ($url)
 _drush_download_file ($url, $destination, $overwrite=TRUE)
 drush_mime_content_type ($filename)
 drush_file_is_tarball ($path)
 drush_tarball_extract ($path, $destination=FALSE, $listing=FALSE, $tar_extra_options= '')
 drush_preflight_command_dispatch ()
 _drush_should_remove_command_arg ($arg, $removal_list)
 drush_do_multiple_command ($command, $source_record, $destination_record, $allow_single_source=FALSE)
 drush_do_command_redispatch ($command, $args=array(), $remote_host=NULL, $remote_user=NULL, $drush_path=NULL, $user_interactive=FALSE)
 drush_log ($message, $type= 'notice', $error=null)
 drush_backend_packet_log ($entry, $backend_options)
 drush_get_log ()
 dlm ($object)
 drush_pipe_output ()
 _drush_print_log ($entry)
 drush_print_timers ()
 _drush_log_drupal_messages ()
 drush_format_size ($size, $langcode=NULL)
 drush_set_error ($error, $message=null, $output_label="")
 drush_get_error ()
 drush_get_error_log ()
 drush_cmp_error ($error)
 drush_clear_error ()
 drush_user_abort ($msg=NULL)
 drush_errors_off ()
 drush_errors_on ($errors=null)
 drush_memory_limit ()
 drush_unset_recursive (&$data, $unset_key)
 drush_version_control_reserved_files ()
 drush_generate_password ($length=10)
 drush_map_assoc ($array, $function=NULL)
 drush_complete_cache_clear ($type=NULL, $command=NULL)

Variables

const DRUSH_KILOBYTE = 1024
const DRUSH_CACHE_LIFETIME_DEFAULT = 86400
Error status definitions

Error code definitions for interpreting the current error status.

See Also
drush_set_error(), drush_get_error(), drush_get_error_log(), drush_cmp_error()
const DRUSH_SUCCESS = 0
const DRUSH_FRAMEWORK_ERROR = 1
const DRUSH_APPLICATION_ERROR = 255

Detailed Description

The drush API implementation and helpers.

Definition in file drush.inc.

Function Documentation

_convert_csv_to_array (   $args)

Convert a csv string, or an array of items which may contain csv strings, into an array of items.

Parameters
$argsA simple csv string; e.g. 'a,b,c' or a simple list of items; e.g. array('a','b','c') or some combination; e.g. array('a,b','c') or array('a,','b,','c,')
Returns
array A simple list of items (e.g. array('a','b','c')

Definition at line 185 of file drush.inc.

Referenced by _make_is_override_allowed(), Drush\User\UserList\getFromParameters(), and pm_parse_arguments().

Here is the caller graph for this function:

_drush_download_file (   $url,
  $destination,
  $overwrite = TRUE 
)

Download a file using wget, curl or file_get_contents. Does not use download cache.

Parameters
string$urlThe url of the file to download.
string$destinationThe name of the file to be saved, which may include the full path.
boolean$overwriteOverwrite any file thats already at the destination.
Returns
string The path to the downloaded file, or FALSE if the file could not be downloaded.

Definition at line 801 of file drush.inc.

References drush_file_not_empty(), drush_move_dir(), drush_shell_exec(), and drush_tempnam().

Referenced by drush_download_file().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_is_drush_shebang_line (   $line)

Check to see if the provided line is a "#!/usr/bin/env drush" "shebang" script line.

Definition at line 336 of file drush.inc.

Referenced by _drush_core_eval_shebang_script(), and _drush_is_drush_shebang_script().

Here is the caller graph for this function:

_drush_is_drush_shebang_script (   $script_filename)

Check to see if the provided script file is a "#!/usr/bin/env drush" "shebang" script line.

Definition at line 344 of file drush.inc.

References _drush_is_drush_shebang_line().

Referenced by drush_adjust_args_if_shebang_script().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_is_url (   $url)

Check whether the given path is just a url or a local path

Parameters
string$url
Returns
boolean TRUE if the path does not contain a schema:// part.

Definition at line 783 of file drush.inc.

Referenced by drush_download_file(), and DrushMakeProject\preprocessLocalFileUrl().

Here is the caller graph for this function:

drush_call_user_func_array (   $function,
  $args = array() 
)

Mimic cufa but still call function directly. See http://drupal.org/node/329012#comment-1260752

Definition at line 686 of file drush.inc.

Referenced by drush_op().

Here is the caller graph for this function:

drush_complete_cache_clear (   $type = NULL,
  $command = NULL 
)

Clears completion caches.

If called with no parameters the entire complete cache will be cleared. If called with just the $type parameter the global cache for that type will be cleared (in the site context, if any). If called with both $type and $command parameters the command cache of that type will be cleared (in the site context, if any).

This is included in drush.inc as complete.inc is only loaded conditionally.

Parameters
$typeThe completion type (optional).
$commandThe command name (optional), if command specific cache is to be cleared. If specifying a command, $type is not optional.

Definition at line 1972 of file drush.inc.

References drush_cache_clear_all(), and drush_complete_cache_cid().

Here is the call graph for this function:

drush_die (   $msg = NULL,
  $status = NULL 
)

Exits with a message. In general, you should use drush_set_error() instead of this function. That lets drush proceed with other tasks. TODO: Exit with a correct status code.

Definition at line 328 of file drush.inc.

drush_download_file (   $url,
  $destination = FALSE,
  $cache_duration = 0 
)

Download a file using wget, curl or file_get_contents, or via download cache.

Parameters
string$urlThe url of the file to download.
string$destinationThe name of the file to be saved, which may include the full path. Optional, if omitted the filename will be extracted from the url and the file downloaded to the current working directory (Drupal root if bootstrapped).
integer$cache_durationThe acceptable age of a cached file. If cached file is too old, a fetch will occur and cache will be updated. Optional, if ommitted the file will be fetched directly.
Returns
string The path to the downloaded file, or FALSE if the file could not be downloaded.

Definition at line 721 of file drush.inc.

References _drush_download_file(), _drush_is_url(), drush_download_file_name(), drush_get_option(), drush_log(), drush_register_file_for_deletion(), and dt().

Referenced by _make_download_file(), drush_hook_pre_pm_enable(), drush_xkcd_display(), package_handler_download_project(), release_info_print_releasenotes(), and updatexml_get_release_history_xml().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_download_file_name (   $url)

Helper function to determine name of cached file.

Definition at line 767 of file drush.inc.

References drush_directory_cache().

Referenced by drush_download_file(), drush_pm_download(), and package_handler_download_project().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_export_info (   $info,
  $integer_keys = FALSE,
  $parents = array() 
)

Generate code friendly to the Drupal .info format from a structured array. Mostly copied from http://drupalcode.org/viewvc/drupal/contributions/modules/features/features.export.inc.

Parameters
$infoAn array or single value to put in a module's .info file.
boolean$integer_keysUse integer in keys.
$parentsArray of parent keys (internal use only).
Returns
A code string ready to be written to a module's .info file.

Definition at line 153 of file drush.inc.

drush_export_ini (   $ini)

Generate an .ini file. used by archive-dump."

Parameters
array$iniA two dimensional associative array where top level are sections and second level are key => value pairs.
Returns
string .ini formatted text.

Definition at line 121 of file drush.inc.

Referenced by drush_archive_dump().

Here is the caller graph for this function:

drush_file_is_tarball (   $path)

Check whether a file is a supported tarball.

Returns
mixed The file content type if it's a tarball. FALSE otherwise.

Definition at line 926 of file drush.inc.

References drush_mime_content_type().

Referenced by drush_tarball_extract(), make_download_file_unpack(), and Drush\Sql\SqlBase\query().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_flatten_array (   $a)

Convert a nested array into a flat array. Thows away the array keys, returning only the values.

Parameters
$argsAn array that may potentially be nested. e.g. array('a', array('b', 'c'))
Returns
array A simple list of items (e.g. array('a','b','c')

Definition at line 207 of file drush.inc.

drush_generate_password (   $length = 10)

Generate a random alphanumeric password. Copied from user.module.

Definition at line 1905 of file drush.inc.

drush_get_class (   $class_name,
  $constructor_args = array(),
  $variations = array() 
)

Provide a version-specific class instance.

Parameters
$class_nameThe name of the class to instantiate. Appends the Drupal major version number to the end of the class name before instantiation.
$constructor_argsAn array of arguments to pass to the class constructor.

Example wrapper class to instantiate a widget, called with the arguments for the WIDGET_CLASS constructor:

function drush_WIDGET_CLASS_get_class($widgetName, $widgetStyle) { retrun drush_get_class('Widget_Class', func_get_args())); }

Definition at line 96 of file drush.inc.

References drush_drupal_major_version().

Referenced by drush_sql_get_class(), drush_user_get_class(), drush_usersingle_get_class(), and drush_valid_db_credentials().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_global_options (   $brief = FALSE)

Get the available global options. Used by help command. Command files may modify this list using hook_drush_help_alter().

Parameters
boolean$briefReturn a reduced set of important options. Used by help command.
Returns
An associative array containing the option definition as the key, and a descriptive array for each of the available options. The array elements for each item are:
  • short-form: The shortcut form for specifying the key on the commandline.
  • context: The drush context where the value of this item is cached. Used by backend invoke to propagate values set in code.
  • never-post: If TRUE, backend invoke will never POST this item's value on STDIN; it will always be sent as a commandline option.
  • never-propagate: If TRUE, backend invoke will never pass this item on to the subcommand being executed.
  • local-context-only: Backend invoke will only pass this value on for local calls.
  • merge: For options such as $options['shell-aliases'] that consist of an array of items, make a merged array that contains all of the values specified for all of the contexts (config files) where the option is defined. The value is stored in the specified 'context', or in a context named after the option itself if the context flag is not specified. IMPORTANT: When the merge flag is used, the option value must be obtained via drush_get_context('option') rather than drush_get_option('option').
  • merge-pathlist: For options such as –include and –config, make a merged list of options from all contexts; works like the 'merge' flag, but also handles string values separated by the PATH_SEPARATOR.
  • merge-associative: Like 'merge-pathlist', but key values are preserved.
  • propagate-cli-value: Used to tell backend invoke to include the value for this item as specified on the cli. This can either override 'context' (e.g., propagate –include from cli value instead of DRUSH_INCLUDE context), or for an independent global setting (e.g. –user)
  • description: The help text for this item. displayed by drush help.

Definition at line 255 of file drush.inc.

References drush_command_invoke_all_ref().

Referenced by _drush_backend_classify_options(), _drush_backend_get_global_contexts(), _drush_verify_cli_options(), drush_complete_rebuild(), drush_expand_short_form_options(), drush_redispatch_get_options(), and drush_set_config_special_contexts().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_include (   $path,
  $name,
  $version = NULL,
  $extension = 'inc' 
)

Include a file, selecting a version specific file if available.

For example, if you pass the path "/var/drush" and the name "update" when bootstrapped on a Drupal 6 site it will first check for the presence of "/var/drush/update_6.inc" in include it if exists. If this file does NOT exist it will proceed and check for "/var/drush/update.inc". If neither file exists, it will return FALSE.

Parameters
$pathThe path you want to search.
$nameThe file base name you want to include (not including a version suffix or extension).
$versionThe version suffix you want to include (could be specific to the software or platform your are connecting to) - defaults to the current Drupal core major version.
$extensionThe extension - defaults to ".inc".
Returns
TRUE if the file was found and included.

Definition at line 63 of file drush.inc.

References drush_drupal_major_version().

Referenced by drush_include_engine(), and drush_sql_sanitize().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_map_assoc (   $array,
  $function = NULL 
)

Form an associative array from a linear array.

This function walks through the provided array and constructs an associative array out of it. The keys of the resulting array will be the values of the input array. The values will be the same as the keys unless a function is specified, in which case the output of the function is used for the values instead.

Parameters
$arrayA linear array.
$functionA name of a function to apply to all values before output.
Returns
An associative array.

Definition at line 1946 of file drush.inc.

Referenced by drush_config_export(), drush_config_import(), and drush_core_config().

Here is the caller graph for this function:

drush_memory_limit ( )

End of "defgroup errorhandling". Get the PHP memory_limit value in bytes.

Definition at line 1852 of file drush.inc.

References DRUSH_KILOBYTE.

Referenced by _drush_batch_worker(), and _drush_postmortem().

Here is the caller graph for this function:

drush_mime_content_type (   $filename)

Determines the MIME content type of the specified file.

The power of this function depends on whether the PHP installation has either mime_content_type() or finfo installed – if not, only tar, gz, zip and bzip2 types can be detected.

If mime type can't be obtained, an error will be set.

Returns
mixed The MIME content type of the file or FALSE.

Definition at line 838 of file drush.inc.

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

Referenced by drush_file_is_tarball().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_op (   $function)

End of "defgroup userinput". Calls a given function, passing through all arguments unchanged.

This should be used when calling possibly mutative or destructive functions (e.g. unlink() and other file system functions) so that can be suppressed if the simulation mode is enabled.

Important: Call

See Also
drush_op_system() to execute a shell command, or
drush_shell_exec() to execute a shell command and capture the shell output.
Parameters
$functionThe name of the function. Any additional arguments are passed along.
Returns
The return value of the function, or TRUE if simulation mode is enabled.

Definition at line 659 of file drush.inc.

References drush_call_user_func_array(), drush_get_context(), drush_log(), and dt().

Referenced by _views_drush_op(), DrushMakeProject\applyPatches(), drush_archive_dump(), drush_archive_restore(), drush_config_import(), drush_copy_dir(), drush_move_dir(), drush_pm_download(), drush_pm_update_lock(), drush_scan_directory(), drush_shell_cd_and_exec(), drush_tarball_extract(), make_get_data(), package_handler_download_project(), and Drush\Sql\SqlBase\query().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_tarball_extract (   $path,
  $destination = FALSE,
  $listing = FALSE,
  $tar_extra_options = '' 
)

Extract a tarball.

Parameters
string$pathPath to the archive to be extracted.
string$destinationThe destination directory the tarball should be extracted into. Optional, if ommitted the tarball directory will be used as destination.
boolean$listingIf TRUE, a listing of the tar contents will be returned on success.
string$tar_extra_optionsExtra options to be passed to the tar command.
Returns
mixed TRUE on success, FALSE on fail. If $listing is TRUE, a file listing of the tarball is returned if the extraction reported success, instead of TRUE.

Definition at line 958 of file drush.inc.

References drush_copy_dir(), drush_file_is_tarball(), drush_get_tar_executable(), drush_is_windows(), drush_mkdir(), drush_op(), drush_set_error(), drush_shell_cd_and_exec(), drush_shell_exec_output(), drush_tempnam(), and dt().

Referenced by drush_archive_restore(), drush_hook_pre_pm_enable(), make_download_file_unpack(), and package_handler_download_project().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_unset_recursive ( $data,
  $unset_key 
)

Unset the named key anywhere in the provided data structure.

Definition at line 1871 of file drush.inc.

Referenced by drush_outputformat\process().

Here is the caller graph for this function:

drush_version_control_reserved_files ( )

Return a list of VCSs reserved files and directories.

Definition at line 1885 of file drush.inc.

References drush_get_engines(), and drush_include_engine().

Referenced by drush_pm_download(), and pm_update_project().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

The command that was executed resulted in an application error, The most commom causes for this is invalid PHP or a broken SSH pipe when using drush_backend_invoke in a distributed manner.

Definition at line 22 of file drush.inc.

Referenced by _drush_backend_invoke().

Default amount of time, in seconds, to cache downloads via drush_download_file(). One day is 86400 seconds.

Definition at line 37 of file drush.inc.

The command could not be completed because the framework has specified errors that have occured.

Definition at line 18 of file drush.inc.

Referenced by drush_set_error().

const DRUSH_KILOBYTE = 1024

End of "name Error status defintions". The number of bytes in a kilobyte. Copied from Drupal.

Definition at line 31 of file drush.inc.

Referenced by _drush_postmortem(), and drush_memory_limit().

const DRUSH_SUCCESS = 0

The command completed successfully.

Definition at line 16 of file drush.inc.

Referenced by drush_backend_output(), drush_clear_error(), drush_get_error(), drush_set_error(), and drush_test_run().

File

doxygen/html/drush_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/drush.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> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">drush.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="drush_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:a80ce43b30f833522f72180811dab5a3e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e">drush_include</a> ($path, $name, $version=NULL, $extension= 'inc')</td></tr>
<tr class="memitem:ac0c5cc8dc02832fb068ca98efd0712c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4">drush_get_class</a> ($class_name, $constructor_args=array(), $variations=array())</td></tr>
<tr class="memitem:adf7f9343eeb27ca1be960ebb3a948b13"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#adf7f9343eeb27ca1be960ebb3a948b13">drush_export_ini</a> ($ini)</td></tr>
<tr class="memitem:ad0f3e2c7a99906109aedd3e38089c9ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ad0f3e2c7a99906109aedd3e38089c9ac">drush_export_info</a> ($info, $integer_keys=FALSE, $parents=array())</td></tr>
<tr class="memitem:a6007ce294242d1f6e48cda703fbb8d3f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a6007ce294242d1f6e48cda703fbb8d3f">_convert_csv_to_array</a> ($args)</td></tr>
<tr class="memitem:ad5c64f6b9992f47ec358e1ad820c36f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ad5c64f6b9992f47ec358e1ad820c36f9">drush_flatten_array</a> ($a)</td></tr>
<tr class="memitem:acb0a26e79bcbdd1152d59a6916a35aae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae">drush_get_global_options</a> ($brief=FALSE)</td></tr>
<tr class="memitem:ac40c0a915153d396ef15c1c9f4e809a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ac40c0a915153d396ef15c1c9f4e809a6">drush_die</a> ($msg=NULL, $status=NULL)</td></tr>
<tr class="memitem:a997323f1acad3b9f003118bdcf3540c9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a997323f1acad3b9f003118bdcf3540c9">_drush_is_drush_shebang_line</a> ($line)</td></tr>
<tr class="memitem:a8f5d18c322518e0f31f3fce0f024f2ef"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a8f5d18c322518e0f31f3fce0f024f2ef">_drush_is_drush_shebang_script</a> ($script_filename)</td></tr>
<tr class="memitem:gaa4169b83ff9dc4222af95d376b21268b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b">drush_confirm</a> ($msg, $indent=0)</td></tr>
<tr class="memitem:ga7e823bcd58051b17e6e5601340f0c784"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__userinput.html#ga7e823bcd58051b17e6e5601340f0c784">drush_choice</a> ($options, $prompt= 'Enter a number.', $label= '!value', $widths=array())</td></tr>
<tr class="memitem:ga915b9fa18b5e95b387bddf5a50a266fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__userinput.html#ga915b9fa18b5e95b387bddf5a50a266fe">drush_choice_multiple</a> ($options, $defaults=FALSE, $prompt= 'Select some numbers.', $label= '!value', $mark= '!value(selected)', $min=0, $max=NULL, $final_options=array())</td></tr>
<tr class="memitem:gabbb9a40c8f7e0ba5ec384ccf86305a20"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__userinput.html#gabbb9a40c8f7e0ba5ec384ccf86305a20">drush_prompt</a> ($prompt, $default=NULL, $required=TRUE, $password=FALSE)</td></tr>
<tr class="memitem:a903c36790dbe5525fe9369c8476780af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af">drush_op</a> ($function)</td></tr>
<tr class="memitem:a2dd83647cc42a2dfcde54dc38f54827d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d">drush_call_user_func_array</a> ($function, $args=array())</td></tr>
<tr class="memitem:a9cce12bffedae74c4a45174c59c79311"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a9cce12bffedae74c4a45174c59c79311">drush_download_file</a> ($url, $destination=FALSE, $cache_duration=0)</td></tr>
<tr class="memitem:a6b7589c9e3cd3f683c0ef137e1c30f49"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a6b7589c9e3cd3f683c0ef137e1c30f49">drush_download_file_name</a> ($url)</td></tr>
<tr class="memitem:a5d3c123a1d8fa15642f08ff635dbe2a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a5d3c123a1d8fa15642f08ff635dbe2a1">_drush_is_url</a> ($url)</td></tr>
<tr class="memitem:a5c2a88712f3905874900166f3b2c397c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a5c2a88712f3905874900166f3b2c397c">_drush_download_file</a> ($url, $destination, $overwrite=TRUE)</td></tr>
<tr class="memitem:a4ff511402c9ffe30239b8bdbee33a3dc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a4ff511402c9ffe30239b8bdbee33a3dc">drush_mime_content_type</a> ($filename)</td></tr>
<tr class="memitem:a78aae9f3ebfdb2bee27dee73fe088652"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652">drush_file_is_tarball</a> ($path)</td></tr>
<tr class="memitem:ad8f8c8d5b65e0d9a863173da63ef78ee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ad8f8c8d5b65e0d9a863173da63ef78ee">drush_tarball_extract</a> ($path, $destination=FALSE, $listing=FALSE, $tar_extra_options= '')</td></tr>
<tr class="memitem:gac5fea44d3fe064240192925f864d57a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6">drush_preflight_command_dispatch</a> ()</td></tr>
<tr class="memitem:ga8698a7441bb154ecc60e73f36254a9d8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__commandprocessing.html#ga8698a7441bb154ecc60e73f36254a9d8">_drush_should_remove_command_arg</a> ($arg, $removal_list)</td></tr>
<tr class="memitem:gaadd12f0ca081399dea1c99984c77e567"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567">drush_do_multiple_command</a> ($command, $source_record, $destination_record, $allow_single_source=FALSE)</td></tr>
<tr class="memitem:ga2e0ae6f140c9e0f5c301657cebde33d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6">drush_do_command_redispatch</a> ($command, $args=array(), $remote_host=NULL, $remote_user=NULL, $drush_path=NULL, $user_interactive=FALSE)</td></tr>
<tr class="memitem:gad820f489a93518301794ada4ff7816b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gad820f489a93518301794ada4ff7816b6">drush_log</a> ($message, $type= 'notice', $error=null)</td></tr>
<tr class="memitem:gab4b585b7e23e1133de0497661b0d829c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gab4b585b7e23e1133de0497661b0d829c">drush_backend_packet_log</a> ($entry, $backend_options)</td></tr>
<tr class="memitem:ga5258324e4f8b274b092f8ce17610619f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga5258324e4f8b274b092f8ce17610619f">drush_get_log</a> ()</td></tr>
<tr class="memitem:ga04ee00415bd09ba25a40b8532887e73f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga04ee00415bd09ba25a40b8532887e73f">dlm</a> ($object)</td></tr>
<tr class="memitem:ga4abb05d29558e4bc563592c0e3442623"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga4abb05d29558e4bc563592c0e3442623">drush_pipe_output</a> ()</td></tr>
<tr class="memitem:ga15a903e2bc6fdb8aa8016fd73599c12b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga15a903e2bc6fdb8aa8016fd73599c12b">_drush_print_log</a> ($entry)</td></tr>
<tr class="memitem:gad3356c1e8a431eb007752fb8a4278a47"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad3356c1e8a431eb007752fb8a4278a47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_print_timers</b> ()</td></tr>
<tr class="memitem:ga15230dd6f6b5765f6c1447d4c2b73940"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga15230dd6f6b5765f6c1447d4c2b73940">_drush_log_drupal_messages</a> ()</td></tr>
<tr class="memitem:ga85abad8704b26da10621e03e8dfdaa20"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga85abad8704b26da10621e03e8dfdaa20"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_format_size</b> ($size, $langcode=NULL)</td></tr>
<tr class="memitem:ga23fe9e1e8c1e5ade39256106044b6da4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error</a> ($error, $message=null, $output_label=&quot;&quot;)</td></tr>
<tr class="memitem:ga33fe8456b3dc49a0e28e7f63692a0d44"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44">drush_get_error</a> ()</td></tr>
<tr class="memitem:gaf64f258413d1fed041c634581e39bff0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0">drush_get_error_log</a> ()</td></tr>
<tr class="memitem:gafaa8004ee101cc91df57fae59e5d8956"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#gafaa8004ee101cc91df57fae59e5d8956">drush_cmp_error</a> ($error)</td></tr>
<tr class="memitem:ga7bc0a52d28467940b2bb9588a660ed8f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f">drush_clear_error</a> ()</td></tr>
<tr class="memitem:ga366aaafdf8c774a58653c64a65b6d91c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c">drush_user_abort</a> ($msg=NULL)</td></tr>
<tr class="memitem:ga4d3fc14a9eef57a06ac4bab523744462"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga4d3fc14a9eef57a06ac4bab523744462">drush_errors_off</a> ()</td></tr>
<tr class="memitem:ga303bcdf8b73c31b19ba4de4f2f6ef41b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__errorhandling.html#ga303bcdf8b73c31b19ba4de4f2f6ef41b">drush_errors_on</a> ($errors=null)</td></tr>
<tr class="memitem:a78afaf6bac26a5964c39db973deb0783"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a78afaf6bac26a5964c39db973deb0783">drush_memory_limit</a> ()</td></tr>
<tr class="memitem:a168e5c4e0711c44cf1c54ea8c4ff2c75"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a168e5c4e0711c44cf1c54ea8c4ff2c75">drush_unset_recursive</a> (&amp;$data, $unset_key)</td></tr>
<tr class="memitem:aa61cd59315f7a89a8c7df8649f480a31"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31">drush_version_control_reserved_files</a> ()</td></tr>
<tr class="memitem:a5684e71a8f8639ee7805a502c6e0cfc4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a5684e71a8f8639ee7805a502c6e0cfc4">drush_generate_password</a> ($length=10)</td></tr>
<tr class="memitem:ad847f03f1d1c046f9eb472aafa56137c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ad847f03f1d1c046f9eb472aafa56137c">drush_map_assoc</a> ($array, $function=NULL)</td></tr>
<tr class="memitem:a12acbc64b339bdd1b32371725edb2dcf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a12acbc64b339bdd1b32371725edb2dcf">drush_complete_cache_clear</a> ($type=NULL, $command=NULL)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a0a75d4291b848dda33fab74050e0ab14"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a0a75d4291b848dda33fab74050e0ab14">DRUSH_KILOBYTE</a> = 1024</td></tr>
<tr class="memitem:aa7401f966d8f78e341094bc304d56162"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#aa7401f966d8f78e341094bc304d56162">DRUSH_CACHE_LIFETIME_DEFAULT</a> = 86400</td></tr>
<tr><td colspan="2"><div class="groupHeader">Error status definitions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>Error code definitions for interpreting the current error status. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error()</a>, <a class="el" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44">drush_get_error()</a>, <a class="el" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0">drush_get_error_log()</a>, <a class="el" href="group__errorhandling.html#gafaa8004ee101cc91df57fae59e5d8956">drush_cmp_error()</a> </dd></dl>
</div></td></tr>
<tr class="memitem:af1fd588cf6b6a3d51e8055408ee86635"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#af1fd588cf6b6a3d51e8055408ee86635">DRUSH_SUCCESS</a> = 0</td></tr>
<tr class="memitem:a7959436c0614636c05192a563bd6cfb5"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#a7959436c0614636c05192a563bd6cfb5">DRUSH_FRAMEWORK_ERROR</a> = 1</td></tr>
<tr class="memitem:ad2cac2311a09943e8f911c2d13167c4a"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drush_8inc.html#ad2cac2311a09943e8f911c2d13167c4a">DRUSH_APPLICATION_ERROR</a> = 255</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The drush API implementation and helpers. </p>

<p>Definition in file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a6007ce294242d1f6e48cda703fbb8d3f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_convert_csv_to_array </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert a csv string, or an array of items which may contain csv strings, into an array of items.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$args</td><td>A simple csv string; e.g. 'a,b,c' or a simple list of items; e.g. array('a','b','c') or some combination; e.g. array('a,b','c') or array('a,','b,','c,')</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array A simple list of items (e.g. array('a','b','c') </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00185">185</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="make_8utilities_8inc_source.html#l00528">_make_is_override_allowed()</a>, <a class="el" href="UserList_8php_source.html#l00100">Drush\User\UserList\getFromParameters()</a>, and <a class="el" href="pm_8drush_8inc_source.html#l01230">pm_parse_arguments()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a6007ce294242d1f6e48cda703fbb8d3f_icgraph.png" border="0" usemap="#drush_8inc_a6007ce294242d1f6e48cda703fbb8d3f_icgraph" alt=""/></div>
<map name="drush_8inc_a6007ce294242d1f6e48cda703fbb8d3f_icgraph" id="drush_8inc_a6007ce294242d1f6e48cda703fbb8d3f_icgraph">
<area shape="rect" id="node3" href="make_8utilities_8inc.html#a060e42b6b94b1e06f584a8d1ed22ea9a" title="_make_is_override_allowed" alt="" coords="209,220,391,249"/><area shape="rect" id="node28" href="classDrush_1_1User_1_1UserList.html#acfa93b5cf17885df31994b2f6588802e" title="Drush\\User\\UserList\l\\getFromParameters" alt="" coords="229,272,371,319"/><area shape="rect" id="node32" href="pm_8drush_8inc.html#a34b2e74a73c176eed08207d9bcb4c587" title="pm_parse_arguments" alt="" coords="227,582,373,612"/><area shape="rect" id="node5" href="make_8utilities_8inc.html#a4936fba59cad3feaaf82d602958af199" title="_get_working_copy_option" alt="" coords="440,86,616,116"/><area shape="rect" id="node15" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="456,220,600,249"/><area shape="rect" id="node7" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="892,84,1057,113"/><area shape="rect" id="node9" href="make_8download_8inc.html#ac808bd6438397ca205135d0345cf4721" title="make_download_bzr" alt="" coords="683,33,824,62"/><area shape="rect" id="node11" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="685,86,821,116"/><area shape="rect" id="node13" href="make_8download_8inc.html#aca118467de1ec3ed60b393ef49ecc7c5" title="make_download_svn" alt="" coords="681,140,825,169"/><area shape="rect" id="node17" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="677,246,829,276"/><area shape="rect" id="node21" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="903,290,1047,336"/><area shape="rect" id="node25" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="665,193,841,222"/><area shape="rect" id="node19" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1107,269,1200,298"/><area shape="rect" id="node30" href="classDrush_1_1User_1_1UserList.html#afa86c99db80a52e01029afae8e986243" title="Drush\\User\\UserList\l\\__construct" alt="" coords="457,272,599,319"/><area shape="rect" id="node34" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="445,342,611,372"/><area shape="rect" id="node36" href="pm_8drush_8inc.html#a836eda9c253a0e7edd01c683fe2d6d00" title="drush_pm_disable" alt="" coords="465,396,591,425"/><area shape="rect" id="node38" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="457,449,599,478"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="440,502,616,532"/><area shape="rect" id="node42" href="info_8pm_8inc.html#a979f36be571c082a364025ae4bce438b" title="drush_pm_info" alt="" coords="475,556,581,585"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a1bce10f51c87e2afae2e5e604c7a035f" title="drush_pm_releasenotes" alt="" coords="448,609,608,638"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="461,662,595,692"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#a89e844acc44eb017c1a12840164316af" title="drush_pm_uninstall" alt="" coords="461,716,595,745"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="465,769,591,798"/><area shape="rect" id="node52" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="452,822,604,852"/><area shape="rect" id="node54" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="448,876,608,905"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5c2a88712f3905874900166f3b2c397c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_download_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$overwrite</em> = <code>TRUE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Download a file using wget, curl or file_get_contents. Does not use download cache.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$url</td><td>The url of the file to download. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$destination</td><td>The name of the file to be saved, which may include the full path. </td></tr>
    <tr><td class="paramtype">boolean</td><td class="paramname">$overwrite</td><td>Overwrite any file thats already at the destination. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string The path to the downloaded file, or FALSE if the file could not be downloaded. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00801">801</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="filesystem_8inc_source.html#l00610">drush_file_not_empty()</a>, <a class="el" href="filesystem_8inc_source.html#l00302">drush_move_dir()</a>, <a class="el" href="exec_8inc_source.html#l00078">drush_shell_exec()</a>, and <a class="el" href="filesystem_8inc_source.html#l00485">drush_tempnam()</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l00721">drush_download_file()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a5c2a88712f3905874900166f3b2c397c_cgraph.png" border="0" usemap="#drush_8inc_a5c2a88712f3905874900166f3b2c397c_cgraph" alt=""/></div>
<map name="drush_8inc_a5c2a88712f3905874900166f3b2c397c_cgraph" id="drush_8inc_a5c2a88712f3905874900166f3b2c397c_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#ga0d795889ef507c45abb793b8685b36d0" title="drush_file_not_empty" alt="" coords="200,243,347,273"/><area shape="rect" id="node5" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="216,297,331,326"/><area shape="rect" id="node42" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="212,581,335,610"/><area shape="rect" id="node70" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="216,451,331,481"/><area shape="rect" id="node7" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="583,41,657,70"/><area shape="rect" id="node16" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="815,149,852,178"/><area shape="rect" id="node28" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="777,347,889,377"/><area shape="rect" id="node36" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="396,194,505,223"/><area shape="rect" id="node9" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1035,242,1112,271"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1452,425,1580,454"/><area shape="rect" id="node26" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="761,28,905,75"/><area shape="rect" id="node13" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1215,346,1369,375"/><area shape="rect" id="node18" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1007,156,1140,203"/><area shape="rect" id="node20" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1220,191,1364,221"/><area shape="rect" id="node22" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1419,191,1613,221"/><area shape="rect" id="node31" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="983,295,1164,325"/><area shape="rect" id="node44" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="555,691,685,721"/><area shape="rect" id="node46" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="760,657,907,686"/><area shape="rect" id="node55" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1031,811,1116,841"/><area shape="rect" id="node64" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="756,761,911,790"/><area shape="rect" id="node68" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="735,603,932,633"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1009,518,1137,547"/><area shape="rect" id="node50" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="996,640,1151,687"/><area shape="rect" id="node52" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="996,571,1151,617"/><area shape="rect" id="node57" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1232,811,1352,841"/><area shape="rect" id="node59" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1452,785,1580,814"/><area shape="rect" id="node61" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1441,838,1591,867"/><area shape="rect" id="node72" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="396,451,505,481"/><area shape="rect" id="node87" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="556,603,684,649"/><area shape="rect" id="node75" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1031,465,1116,494"/><area shape="rect" id="node81" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="573,347,667,377"/><area shape="rect" id="node78" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1228,450,1356,479"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a5c2a88712f3905874900166f3b2c397c_icgraph.png" border="0" usemap="#drush_8inc_a5c2a88712f3905874900166f3b2c397c_icgraph" alt=""/></div>
<map name="drush_8inc_a5c2a88712f3905874900166f3b2c397c_icgraph" id="drush_8inc_a5c2a88712f3905874900166f3b2c397c_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a9cce12bffedae74c4a45174c59c79311" title="drush_download_file" alt="" coords="201,628,340,657"/><area shape="rect" id="node5" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="408,257,555,287"/><area shape="rect" id="node33" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="391,519,572,566"/><area shape="rect" id="node35" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="860,657,983,703"/><area shape="rect" id="node48" href="updatexml_8inc.html#a2131dceb4ad05da633f876f3feaa6064" title="updatexml_get_release\l_history_xml" alt="" coords="404,589,559,635"/><area shape="rect" id="node76" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="389,709,573,739"/><area shape="rect" id="node78" href="xkcd_8drush_8inc.html#a1639c8faf7d2d4cdc7563792b479cd69" title="drush_xkcd_display" alt="" coords="413,763,549,792"/><area shape="rect" id="node7" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="1277,264,1491,293"/><area shape="rect" id="node11" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="1273,409,1495,439"/><area shape="rect" id="node14" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="639,257,777,287"/><area shape="rect" id="node18" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="653,144,763,173"/><area shape="rect" id="node9" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1545,264,1711,293"/><area shape="rect" id="node16" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="851,257,992,287"/><area shape="rect" id="node20" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="849,125,993,155"/><area shape="rect" id="node22" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="1060,5,1212,35"/><area shape="rect" id="node26" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="1312,57,1456,103"/><area shape="rect" id="node30" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1296,211,1472,240"/><area shape="rect" id="node24" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1581,65,1675,95"/><area shape="rect" id="node37" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="1073,665,1199,695"/><area shape="rect" id="node41" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="1065,556,1207,585"/><area shape="rect" id="node43" href="pm_8drush_8inc.html#a1bce10f51c87e2afae2e5e604c7a035f" title="drush_pm_releasenotes" alt="" coords="1056,612,1216,641"/><area shape="rect" id="node45" href="updatecode_8pm_8inc.html#a604cbac2dc913cf35f3d4f7f79f4bc4b" title="pm_update_packages" alt="" coords="1061,719,1211,748"/><area shape="rect" id="node39" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1308,692,1460,721"/><area shape="rect" id="node50" href="updatexml_8inc.html#a1273e7da7133ada1987f4dde8859aad1" title="release_info_check\l_project" alt="" coords="641,397,775,443"/><area shape="rect" id="node67" href="updatexml_8inc.html#a7fe4c8cdddd122b232c8daf5484444f9" title="release_info_fetch" alt="" coords="644,552,772,581"/><area shape="rect" id="node71" href="updatexml_8inc.html#a40d4c136aadd10580d665514073a3c0b" title="release_info_get_releases" alt="" coords="621,605,795,635"/><area shape="rect" id="node52" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="843,363,1000,410"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#a9ac55f981042516472e063eef9d51b0c" title="drush_pm_find_project\l_from_extension" alt="" coords="845,433,997,479"/><area shape="rect" id="node60" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="843,311,1000,340"/><area shape="rect" id="node54" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="1061,372,1211,401"/><area shape="rect" id="node58" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1048,441,1224,471"/><area shape="rect" id="node63" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1083,160,1189,189"/><area shape="rect" id="node73" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="855,604,988,633"/><area shape="rect" id="node80" href="xkcd_8drush_8inc.html#a9996ede595d6a353140c6b22ca2936dd" title="drush_xkcd_fetch" alt="" coords="645,763,771,792"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a997323f1acad3b9f003118bdcf3540c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_is_drush_shebang_line </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check to see if the provided line is a "#!/usr/bin/env drush" "shebang" script line. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00336">336</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l01073">_drush_core_eval_shebang_script()</a>, and <a class="el" href="drush_8inc_source.html#l00344">_drush_is_drush_shebang_script()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a997323f1acad3b9f003118bdcf3540c9_icgraph.png" border="0" usemap="#drush_8inc_a997323f1acad3b9f003118bdcf3540c9_icgraph" alt=""/></div>
<map name="drush_8inc_a997323f1acad3b9f003118bdcf3540c9_icgraph" id="drush_8inc_a997323f1acad3b9f003118bdcf3540c9_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#aa572438a5d0f359ac7f5dfd92ad6bda3" title="_drush_core_eval_shebang\l_script" alt="" coords="255,5,433,51"/><area shape="rect" id="node7" href="drush_8inc.html#a8f5d18c322518e0f31f3fce0f024f2ef" title="_drush_is_drush_shebang\l_script" alt="" coords="257,74,431,121"/><area shape="rect" id="node5" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="484,13,636,43"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1" title="drush_adjust_args_if\l_shebang_script" alt="" coords="489,74,631,121"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="685,83,811,112"/><area shape="rect" id="node13" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="860,25,1057,55"/><area shape="rect" id="node17" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="880,83,1037,112"/><area shape="rect" id="node21" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="873,140,1044,169"/><area shape="rect" id="node15" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1120,21,1269,51"/><area shape="rect" id="node19" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="1108,74,1281,121"/><area shape="rect" id="node23" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="1141,144,1248,173"/><area shape="rect" id="node25" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1387,48,1475,77"/><area shape="rect" id="node27" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="1332,101,1529,147"/><area shape="rect" id="node29" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="1345,170,1516,217"/><area shape="rect" id="node31" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="1335,239,1527,286"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8f5d18c322518e0f31f3fce0f024f2ef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_is_drush_shebang_script </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$script_filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check to see if the provided script file is a "#!/usr/bin/env drush" "shebang" script line. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00344">344</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

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

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00882">drush_adjust_args_if_shebang_script()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_cgraph.png" border="0" usemap="#drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_cgraph" alt=""/></div>
<map name="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_cgraph" id="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a997323f1acad3b9f003118bdcf3540c9" title="_drush_is_drush_shebang_line" alt="" coords="227,13,427,43"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_icgraph.png" border="0" usemap="#drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_icgraph" alt=""/></div>
<map name="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_icgraph" id="drush_8inc_a8f5d18c322518e0f31f3fce0f024f2ef_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1" title="drush_adjust_args_if\l_shebang_script" alt="" coords="228,58,369,105"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="419,67,544,96"/><area shape="rect" id="node7" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="593,9,791,39"/><area shape="rect" id="node11" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="613,67,771,96"/><area shape="rect" id="node15" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="607,124,777,153"/><area shape="rect" id="node9" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="853,5,1003,35"/><area shape="rect" id="node13" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="841,58,1015,105"/><area shape="rect" id="node17" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="875,128,981,157"/><area shape="rect" id="node19" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1120,32,1208,61"/><area shape="rect" id="node21" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="1065,85,1263,131"/><area shape="rect" id="node23" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="1079,154,1249,201"/><area shape="rect" id="node25" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="1068,223,1260,270"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5d3c123a1d8fa15642f08ff635dbe2a1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_is_url </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check whether the given path is just a url or a local path </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$url</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>boolean TRUE if the path does not contain a schema:// part. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00783">783</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l00721">drush_download_file()</a>, and <a class="el" href="make_8project_8inc_source.html#l00230">DrushMakeProject\preprocessLocalFileUrl()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a5d3c123a1d8fa15642f08ff635dbe2a1_icgraph.png" border="0" usemap="#drush_8inc_a5d3c123a1d8fa15642f08ff635dbe2a1_icgraph" alt=""/></div>
<map name="drush_8inc_a5d3c123a1d8fa15642f08ff635dbe2a1_icgraph" id="drush_8inc_a5d3c123a1d8fa15642f08ff635dbe2a1_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a9cce12bffedae74c4a45174c59c79311" title="drush_download_file" alt="" coords="153,197,292,227"/><area shape="rect" id="node82" href="classDrushMakeProject.html#a44714696c45b971da01dd29a529fd01b" title="DrushMakeProject\\preprocess\lLocalFileUrl" alt="" coords="343,5,540,51"/><area shape="rect" id="node5" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="368,197,515,227"/><area shape="rect" id="node33" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="351,74,532,121"/><area shape="rect" id="node35" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="879,543,1001,590"/><area shape="rect" id="node48" href="updatexml_8inc.html#a2131dceb4ad05da633f876f3feaa6064" title="updatexml_get_release\l_history_xml" alt="" coords="364,347,519,394"/><area shape="rect" id="node76" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="349,144,533,173"/><area shape="rect" id="node78" href="xkcd_8drush_8inc.html#a1639c8faf7d2d4cdc7563792b479cd69" title="drush_xkcd_display" alt="" coords="373,251,509,280"/><area shape="rect" id="node7" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="595,15,808,44"/><area shape="rect" id="node11" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="591,68,812,97"/><area shape="rect" id="node14" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="632,141,771,171"/><area shape="rect" id="node18" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="647,196,756,225"/><area shape="rect" id="node9" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1519,65,1684,95"/><area shape="rect" id="node16" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="869,141,1011,171"/><area shape="rect" id="node20" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="868,195,1012,224"/><area shape="rect" id="node22" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="1079,117,1231,147"/><area shape="rect" id="node26" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="1308,167,1452,214"/><area shape="rect" id="node30" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1292,237,1468,267"/><area shape="rect" id="node24" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1555,176,1648,205"/><area shape="rect" id="node37" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="1092,589,1217,619"/><area shape="rect" id="node41" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="1084,483,1225,512"/><area shape="rect" id="node43" href="pm_8drush_8inc.html#a1bce10f51c87e2afae2e5e604c7a035f" title="drush_pm_releasenotes" alt="" coords="1075,643,1235,672"/><area shape="rect" id="node45" href="updatecode_8pm_8inc.html#a604cbac2dc913cf35f3d4f7f79f4bc4b" title="pm_update_packages" alt="" coords="1080,536,1229,565"/><area shape="rect" id="node39" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1304,563,1456,592"/><area shape="rect" id="node50" href="updatexml_8inc.html#a1273e7da7133ada1987f4dde8859aad1" title="release_info_check\l_project" alt="" coords="635,317,768,363"/><area shape="rect" id="node67" href="updatexml_8inc.html#a7fe4c8cdddd122b232c8daf5484444f9" title="release_info_fetch" alt="" coords="637,387,765,416"/><area shape="rect" id="node71" href="updatexml_8inc.html#a40d4c136aadd10580d665514073a3c0b" title="release_info_get_releases" alt="" coords="615,491,788,520"/><area shape="rect" id="node52" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="861,247,1019,294"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#a9ac55f981042516472e063eef9d51b0c" title="drush_pm_find_project\l_from_extension" alt="" coords="864,317,1016,363"/><area shape="rect" id="node60" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="861,387,1019,416"/><area shape="rect" id="node54" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="1080,272,1229,301"/><area shape="rect" id="node58" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1067,325,1243,355"/><area shape="rect" id="node63" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1101,429,1208,459"/><area shape="rect" id="node73" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="873,491,1007,520"/><area shape="rect" id="node80" href="xkcd_8drush_8inc.html#a9996ede595d6a353140c6b22ca2936dd" title="drush_xkcd_fetch" alt="" coords="639,251,764,280"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2dd83647cc42a2dfcde54dc38f54827d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_call_user_func_array </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$args</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Mimic cufa but still call function directly. See <a href="http://drupal.org/node/329012#comment-1260752">http://drupal.org/node/329012#comment-1260752</a> </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00686">686</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l00659">drush_op()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a2dd83647cc42a2dfcde54dc38f54827d_icgraph.png" border="0" usemap="#drush_8inc_a2dd83647cc42a2dfcde54dc38f54827d_icgraph" alt=""/></div>
<map name="drush_8inc_a2dd83647cc42a2dfcde54dc38f54827d_icgraph" id="drush_8inc_a2dd83647cc42a2dfcde54dc38f54827d_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="200,774,275,804"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="839,361,980,390"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="835,1025,984,1054"/><area shape="rect" id="node9" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="340,152,479,181"/><area shape="rect" id="node11" href="views_8d8_8drush_8inc.html#ad614c55f8108f223a31dc1c6c112c163" title="_views_drush_op" alt="" coords="348,98,471,128"/><area shape="rect" id="node17" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="549,1000,763,1029"/><area shape="rect" id="node21" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="355,205,464,234"/><area shape="rect" id="node25" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="1051,601,1192,630"/><area shape="rect" id="node27" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="819,830,1000,876"/><area shape="rect" id="node29" href="pm_8drush_8inc.html#ae6681be57636d2db04f48bcc85588b2c" title="drush_pm_update_lock" alt="" coords="332,429,487,458"/><area shape="rect" id="node33" href="drush_8inc.html#ad8f8c8d5b65e0d9a863173da63ef78ee" title="drush_tarball_extract" alt="" coords="585,896,727,925"/><area shape="rect" id="node41" href="group__commandwrappers.html#ga59e8ee9f53442f2029080ac723ed008f" title="drush_shell_cd_and_exec" alt="" coords="324,601,495,630"/><area shape="rect" id="node60" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="355,1106,464,1136"/><area shape="rect" id="node78" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="599,1333,713,1362"/><area shape="rect" id="node100" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="336,1597,483,1626"/><area shape="rect" id="node125" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5" title="Drush\\Sql\\SqlBase\\query" alt="" coords="325,1650,493,1680"/><area shape="rect" id="node13" href="views_8d8_8drush_8inc.html#a57c880b394aed2fcbc92df64aff008a5" title="drush_views_disable" alt="" coords="585,98,727,128"/><area shape="rect" id="node15" href="views_8d8_8drush_8inc.html#afb0fd06776785d9525080d414e981ccb" title="drush_views_enable" alt="" coords="587,152,725,181"/><area shape="rect" id="node19" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="827,1080,992,1109"/><area shape="rect" id="node23" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="584,205,728,234"/><area shape="rect" id="node31" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="576,309,736,338"/><area shape="rect" id="node36" href="make_8download_8inc.html#a39dc84607968d96b01b9edcda21a8422" title="make_download_file\l_unpack" alt="" coords="840,954,979,1000"/><area shape="rect" id="node39" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="817,900,1001,929"/><area shape="rect" id="node44" href="generate_8make_8inc.html#afbe1b490c8c2f78c3ec0634b1903782f" title="_drush_generate_custom\l_project" alt="" coords="572,532,740,579"/><area shape="rect" id="node46" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="588,722,724,752"/><area shape="rect" id="node48" href="git__drupalorg_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="819,468,1000,515"/><area shape="rect" id="node51" href="git__drupalorg_8inc.html#a842ef59d187c73488ad44f832cd8974f" title="package_handler_update\l_project" alt="" coords="573,652,739,699"/><area shape="rect" id="node53" href="git__drupalorg_8inc.html#a24cb40954a8234867336586a498d76b2" title="package_handler_post\l_download" alt="" coords="833,592,985,639"/><area shape="rect" id="node56" href="git__drupalorg_8inc.html#a258fb6515d2a1d8f92e54c4278acb4cb" title="drush_pm_git_drupalorg\l_compute_rebuild_version" alt="" coords="569,463,743,510"/><area shape="rect" id="node62" href="make_8download_8inc.html#a74fc37b0ad8db7422b33cbadbe302325" title="_make_download_file_move" alt="" coords="816,1456,1003,1485"/><area shape="rect" id="node65" href="make_8download_8inc.html#ac808bd6438397ca205135d0345cf4721" title="make_download_bzr" alt="" coords="585,1053,727,1082"/><area shape="rect" id="node67" href="make_8drush_8inc.html#ae5eb2a2403d96afcef3d5f85ee7ae284" title="make_move_build" alt="" coords="847,1509,972,1538"/><area shape="rect" id="node70" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="545,1160,767,1189"/><area shape="rect" id="node73" href="make_8utilities_8inc.html#a7ac27f598c36208652191f40f08c2332" title="make_prepare_install" alt="" coords="584,1106,728,1136"/><area shape="rect" id="node75" href="classdrush__version__control__backup.html#aa6d4b12d4fe6e525ca364a57cbf769f8" title="drush_version_control\l_backup\\pre_update" alt="" coords="835,1140,984,1187"/><area shape="rect" id="node85" href="make_8utilities_8inc.html#ae5b2297055f24062509236670e55dc2a" title="make_tar" alt="" coords="872,1333,947,1362"/><area shape="rect" id="node88" href="updatecode_8pm_8inc.html#ab11eea54f55781b92561a28a8e39f224" title="_pm_update_move_files" alt="" coords="828,1865,991,1894"/><area shape="rect" id="node93" href="classdrush__version__control__backup.html#a0957924f0360e2afa4133063a514e22f" title="drush_version_control\l_backup\\rollback" alt="" coords="835,1386,984,1432"/><area shape="rect" id="node95" href="sync__via__http_8drush_8inc.html#ababb0956fc32b685a05e6ccef8347672" title="_drush_sync_via_http\l_download_file" alt="" coords="835,1210,984,1256"/><area shape="rect" id="node97" href="drush_8inc.html#a5c2a88712f3905874900166f3b2c397c" title="_drush_download_file" alt="" coords="836,1280,983,1309"/><area shape="rect" id="node90" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="1059,1917,1184,1946"/><area shape="rect" id="node102" href="archive_8drush_8inc.html#a51085ff955b6905e494c7da6cd84e028" title="drush_archive_guess\l_manifest" alt="" coords="584,1212,728,1259"/><area shape="rect" id="node105" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="580,1760,732,1789"/><area shape="rect" id="node107" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="577,1813,735,1842"/><area shape="rect" id="node109" href="sitealias_8drush_8inc.html#abc87a944e5c22e954bfed08dcd874e02" title="_drush_sitealias_site_list" alt="" coords="572,1917,740,1946"/><area shape="rect" id="node115" href="download_8pm_8inc.html#ab35a163fb97c0a4e0668f0e2b7c78559" title="pm_drush_pm_download\l_destination_alter" alt="" coords="573,1588,739,1635"/><area shape="rect" id="node117" href="pm_8drush_8inc.html#acf732982c7f481e1bfc50db3bd269de9" title="drush_pm_extensions\l_in_project" alt="" coords="835,1600,984,1647"/><area shape="rect" id="node120" href="pm_8drush_8inc.html#ae5c95f9279eaddddd401970d1065c023" title="drush_pm_inject_info\l_file_metadata" alt="" coords="584,826,728,872"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a12acbc64b339bdd1b32371725edb2dcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_complete_cache_clear </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clears completion caches.</p>
<p>If called with no parameters the entire complete cache will be cleared. If called with just the $type parameter the global cache for that type will be cleared (in the site context, if any). If called with both $type and $command parameters the command cache of that type will be cleared (in the site context, if any).</p>
<p>This is included in <a class="el" href="drush_8inc.html">drush.inc</a> as <a class="el" href="complete_8inc.html">complete.inc</a> is only loaded conditionally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$type</td><td>The completion type (optional). </td></tr>
    <tr><td class="paramname">$command</td><td>The command name (optional), if command specific cache is to be cleared. If specifying a command, $type is not optional. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01972">1972</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="includes_2cache_8inc_source.html#l00137">drush_cache_clear_all()</a>, and <a class="el" href="complete_8inc_source.html#l00556">drush_complete_cache_cid()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a12acbc64b339bdd1b32371725edb2dcf_cgraph.png" border="0" usemap="#drush_8inc_a12acbc64b339bdd1b32371725edb2dcf_cgraph" alt=""/></div>
<map name="drush_8inc_a12acbc64b339bdd1b32371725edb2dcf_cgraph" id="drush_8inc_a12acbc64b339bdd1b32371725edb2dcf_cgraph">
<area shape="rect" id="node3" href="includes_2cache_8inc.html#a320b19400992c01f88bd71db140da5bc" title="drush_cache_clear_all" alt="" coords="227,109,376,139"/><area shape="rect" id="node19" href="complete_8inc.html#a5cacfdc5ec07fac0d484c64c7368c511" title="drush_complete_cache_cid" alt="" coords="212,213,391,243"/><area shape="rect" id="node5" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="440,109,611,139"/><area shape="rect" id="node15" href="includes_2cache_8inc.html#a4338413ce68582b943bb07b81da7af7a" title="drush_cache_get_bins" alt="" coords="449,56,601,85"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="691,109,811,139"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="903,5,1031,35"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="892,59,1041,88"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1092,215,1220,244"/><area shape="rect" id="node17" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="660,56,841,85"/><area shape="rect" id="node21" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="916,345,1017,375"/><area shape="rect" id="node25" href="includes_2environment_8inc.html#abd11f38a3202eab6206d1bfda1e11b6f" title="drush_locate_root" alt="" coords="463,267,588,296"/><area shape="rect" id="node37" href="includes_2environment_8inc.html#a35bbe20a952598e022399912d89f97f0" title="drush_site_path" alt="" coords="468,213,583,243"/><area shape="rect" id="node27" href="includes_2environment_8inc.html#a6596204dc31d9f84a5fa804b305d3da1" title="_drush_shift_path_up" alt="" coords="677,320,824,349"/><area shape="rect" id="node29" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="708,267,793,296"/><area shape="rect" id="node35" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="672,213,829,243"/><area shape="rect" id="node32" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="903,215,1031,244"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac40c0a915153d396ef15c1c9f4e809a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_die </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$msg</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$status</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Exits with a message. In general, you should use <a class="el" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error()</a> instead of this function. That lets drush proceed with other tasks. TODO: Exit with a correct status code. </p>

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

</div>
</div>
<a class="anchor" id="a9cce12bffedae74c4a45174c59c79311"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_download_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$destination</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cache_duration</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Download a file using wget, curl or file_get_contents, or via download cache.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$url</td><td>The url of the file to download. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$destination</td><td>The name of the file to be saved, which may include the full path. Optional, if omitted the filename will be extracted from the url and the file downloaded to the current working directory (Drupal root if bootstrapped). </td></tr>
    <tr><td class="paramtype">integer</td><td class="paramname">$cache_duration</td><td>The acceptable age of a cached file. If cached file is too old, a fetch will occur and cache will be updated. Optional, if ommitted the file will be fetched directly.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string The path to the downloaded file, or FALSE if the file could not be downloaded. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00721">721</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00801">_drush_download_file()</a>, <a class="el" href="drush_8inc_source.html#l00783">_drush_is_url()</a>, <a class="el" href="drush_8inc_source.html#l00767">drush_download_file_name()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00513">drush_register_file_for_deletion()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="make_8download_8inc_source.html#l00092">_make_download_file()</a>, <a class="el" href="drush_8api_8php_source.html#l00241">drush_hook_pre_pm_enable()</a>, <a class="el" href="xkcd_8drush_8inc_source.html#l00146">drush_xkcd_display()</a>, <a class="el" href="wget_8inc_source.html#l00038">package_handler_download_project()</a>, <a class="el" href="updatexml_8inc_source.html#l00154">release_info_print_releasenotes()</a>, and <a class="el" href="updatexml_8inc_source.html#l00467">updatexml_get_release_history_xml()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a9cce12bffedae74c4a45174c59c79311_cgraph.png" border="0" usemap="#drush_8inc_a9cce12bffedae74c4a45174c59c79311_cgraph" alt=""/></div>
<map name="drush_8inc_a9cce12bffedae74c4a45174c59c79311_cgraph" id="drush_8inc_a9cce12bffedae74c4a45174c59c79311_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a5c2a88712f3905874900166f3b2c397c" title="_drush_download_file" alt="" coords="211,672,357,701"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1320,769,1397,799"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1123,992,1160,1021"/><area shape="rect" id="node59" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1299,59,1419,88"/><area shape="rect" id="node89" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="852,347,980,394"/><area shape="rect" id="node92" href="drush_8inc.html#a5d3c123a1d8fa15642f08ff635dbe2a1" title="_drush_is_url" alt="" coords="235,1192,333,1221"/><area shape="rect" id="node94" href="drush_8inc.html#a6b7589c9e3cd3f683c0ef137e1c30f49" title="drush_download_file_name" alt="" coords="195,931,373,960"/><area shape="rect" id="node5" href="group__filesystemfunctions.html#ga0d795889ef507c45abb793b8685b36d0" title="drush_file_not_empty" alt="" coords="425,672,572,701"/><area shape="rect" id="node7" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="441,776,556,805"/><area shape="rect" id="node44" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="437,465,560,495"/><area shape="rect" id="node72" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="441,569,556,599"/><area shape="rect" id="node9" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="879,828,953,857"/><area shape="rect" id="node30" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1085,660,1197,689"/><area shape="rect" id="node38" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="641,776,751,805"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1737,640,1865,669"/><area shape="rect" id="node28" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1069,763,1213,810"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1500,665,1655,695"/><area shape="rect" id="node20" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1292,987,1425,1034"/><area shape="rect" id="node22" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1505,992,1649,1021"/><area shape="rect" id="node24" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1704,992,1899,1021"/><area shape="rect" id="node33" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1268,716,1449,745"/><area shape="rect" id="node46" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="631,217,761,247"/><area shape="rect" id="node48" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="843,244,989,273"/><area shape="rect" id="node57" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1099,87,1184,116"/><area shape="rect" id="node66" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="839,191,993,220"/><area shape="rect" id="node70" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="817,137,1015,167"/><area shape="rect" id="node50" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1077,352,1205,381"/><area shape="rect" id="node52" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="1064,282,1219,329"/><area shape="rect" id="node54" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="1064,213,1219,259"/><area shape="rect" id="node61" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1513,5,1641,35"/><area shape="rect" id="node63" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1503,59,1652,88"/><area shape="rect" id="node74" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="641,569,751,599"/><area shape="rect" id="node77" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="873,569,959,599"/><area shape="rect" id="node83" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="869,623,963,652"/><area shape="rect" id="node80" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1077,884,1205,913"/><area shape="rect" id="node96" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="423,931,575,960"/><area shape="rect" id="node98" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="635,931,757,960"/><area shape="rect" id="node102" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="625,984,767,1013"/><area shape="rect" id="node105" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="628,1088,764,1117"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a9cce12bffedae74c4a45174c59c79311_icgraph.png" border="0" usemap="#drush_8inc_a9cce12bffedae74c4a45174c59c79311_icgraph" alt=""/></div>
<map name="drush_8inc_a9cce12bffedae74c4a45174c59c79311_icgraph" id="drush_8inc_a9cce12bffedae74c4a45174c59c79311_icgraph">
<area shape="rect" id="node3" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="213,108,360,137"/><area shape="rect" id="node31" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="195,283,379,312"/><area shape="rect" id="node33" href="xkcd_8drush_8inc.html#a1639c8faf7d2d4cdc7563792b479cd69" title="drush_xkcd_display" alt="" coords="219,336,355,365"/><area shape="rect" id="node37" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="196,389,377,435"/><area shape="rect" id="node39" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="665,594,788,641"/><area shape="rect" id="node52" href="updatexml_8inc.html#a2131dceb4ad05da633f876f3feaa6064" title="updatexml_get_release\l_history_xml" alt="" coords="209,458,364,505"/><area shape="rect" id="node5" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="1083,108,1296,137"/><area shape="rect" id="node9" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="1079,55,1300,84"/><area shape="rect" id="node12" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="444,5,583,35"/><area shape="rect" id="node16" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="459,185,568,215"/><area shape="rect" id="node7" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1351,108,1516,137"/><area shape="rect" id="node14" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="656,5,797,35"/><area shape="rect" id="node18" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="655,199,799,228"/><area shape="rect" id="node20" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="865,160,1017,189"/><area shape="rect" id="node24" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="1117,211,1261,258"/><area shape="rect" id="node28" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1101,281,1277,311"/><area shape="rect" id="node22" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1387,220,1480,249"/><area shape="rect" id="node35" href="xkcd_8drush_8inc.html#a9996ede595d6a353140c6b22ca2936dd" title="drush_xkcd_fetch" alt="" coords="451,336,576,365"/><area shape="rect" id="node41" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="879,579,1004,608"/><area shape="rect" id="node45" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="871,525,1012,555"/><area shape="rect" id="node47" href="pm_8drush_8inc.html#a1bce10f51c87e2afae2e5e604c7a035f" title="drush_pm_releasenotes" alt="" coords="861,685,1021,715"/><area shape="rect" id="node49" href="updatecode_8pm_8inc.html#a604cbac2dc913cf35f3d4f7f79f4bc4b" title="pm_update_packages" alt="" coords="867,632,1016,661"/><area shape="rect" id="node43" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1113,605,1265,635"/><area shape="rect" id="node54" href="updatexml_8inc.html#a1273e7da7133ada1987f4dde8859aad1" title="release_info_check\l_project" alt="" coords="447,393,580,439"/><area shape="rect" id="node71" href="updatexml_8inc.html#a7fe4c8cdddd122b232c8daf5484444f9" title="release_info_fetch" alt="" coords="449,467,577,496"/><area shape="rect" id="node75" href="updatexml_8inc.html#a40d4c136aadd10580d665514073a3c0b" title="release_info_get_releases" alt="" coords="427,541,600,571"/><area shape="rect" id="node56" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="648,298,805,345"/><area shape="rect" id="node60" href="pm_8drush_8inc.html#a9ac55f981042516472e063eef9d51b0c" title="drush_pm_find_project\l_from_extension" alt="" coords="651,367,803,414"/><area shape="rect" id="node64" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="648,437,805,467"/><area shape="rect" id="node58" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="867,315,1016,344"/><area shape="rect" id="node62" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="853,368,1029,397"/><area shape="rect" id="node67" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="888,472,995,501"/><area shape="rect" id="node77" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="660,541,793,571"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6b7589c9e3cd3f683c0ef137e1c30f49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_download_file_name </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Helper function to determine name of cached file. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00767">767</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="includes_2environment_8inc_source.html#l00691">drush_directory_cache()</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l00721">drush_download_file()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, and <a class="el" href="wget_8inc_source.html#l00038">package_handler_download_project()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_cgraph.png" border="0" usemap="#drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_cgraph" alt=""/></div>
<map name="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_cgraph" id="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_cgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="233,359,385,388"/><area shape="rect" id="node5" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="445,5,568,35"/><area shape="rect" id="node11" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="452,256,561,285"/><area shape="rect" id="node19" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="645,359,739,388"/><area shape="rect" id="node21" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="815,241,927,271"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="852,355,889,384"/><area shape="rect" id="node46" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="436,463,577,492"/><area shape="rect" id="node49" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="439,516,575,545"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="807,31,935,60"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1455,215,1583,244"/><area shape="rect" id="node13" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="628,204,756,233"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="649,31,735,60"/><area shape="rect" id="node44" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="628,134,756,181"/><area shape="rect" id="node24" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="985,136,1167,165"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1217,240,1372,269"/><area shape="rect" id="node29" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1037,189,1115,219"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1009,345,1143,391"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1223,348,1367,377"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1421,348,1616,377"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_icgraph.png" border="0" usemap="#drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_icgraph" alt=""/></div>
<map name="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_icgraph" id="drush_8inc_a6b7589c9e3cd3f683c0ef137e1c30f49_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a9cce12bffedae74c4a45174c59c79311" title="drush_download_file" alt="" coords="233,489,372,519"/><area shape="rect" id="node39" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="423,622,604,669"/><area shape="rect" id="node47" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="1097,165,1239,195"/><area shape="rect" id="node5" href="make_8download_8inc.html#a6381bf72fa72152dd12f122dbca83d78" title="_make_download_file" alt="" coords="440,516,587,545"/><area shape="rect" id="node33" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="421,463,605,492"/><area shape="rect" id="node35" href="xkcd_8drush_8inc.html#a1639c8faf7d2d4cdc7563792b479cd69" title="drush_xkcd_display" alt="" coords="445,569,581,599"/><area shape="rect" id="node41" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="892,73,1015,119"/><area shape="rect" id="node54" href="updatexml_8inc.html#a2131dceb4ad05da633f876f3feaa6064" title="updatexml_get_release\l_history_xml" alt="" coords="436,335,591,382"/><area shape="rect" id="node7" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="1309,647,1523,676"/><area shape="rect" id="node11" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="1305,700,1527,729"/><area shape="rect" id="node14" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="671,489,809,519"/><area shape="rect" id="node18" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="685,543,795,572"/><area shape="rect" id="node9" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1577,647,1743,676"/><area shape="rect" id="node16" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="883,489,1024,519"/><area shape="rect" id="node20" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="881,543,1025,572"/><area shape="rect" id="node22" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="1092,541,1244,571"/><area shape="rect" id="node26" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="1344,473,1488,519"/><area shape="rect" id="node30" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1328,593,1504,623"/><area shape="rect" id="node24" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1613,481,1707,511"/><area shape="rect" id="node37" href="xkcd_8drush_8inc.html#a9996ede595d6a353140c6b22ca2936dd" title="drush_xkcd_fetch" alt="" coords="677,747,803,776"/><area shape="rect" id="node43" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="1105,5,1231,35"/><area shape="rect" id="node49" href="pm_8drush_8inc.html#a1bce10f51c87e2afae2e5e604c7a035f" title="drush_pm_releasenotes" alt="" coords="1088,112,1248,141"/><area shape="rect" id="node51" href="updatecode_8pm_8inc.html#a604cbac2dc913cf35f3d4f7f79f4bc4b" title="pm_update_packages" alt="" coords="1093,59,1243,88"/><area shape="rect" id="node45" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1340,32,1492,61"/><area shape="rect" id="node56" href="updatexml_8inc.html#a1273e7da7133ada1987f4dde8859aad1" title="release_info_check\l_project" alt="" coords="673,366,807,413"/><area shape="rect" id="node73" href="updatexml_8inc.html#a7fe4c8cdddd122b232c8daf5484444f9" title="release_info_fetch" alt="" coords="676,313,804,343"/><area shape="rect" id="node77" href="updatexml_8inc.html#a40d4c136aadd10580d665514073a3c0b" title="release_info_get_releases" alt="" coords="653,193,827,223"/><area shape="rect" id="node58" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="875,297,1032,343"/><area shape="rect" id="node62" href="pm_8drush_8inc.html#a9ac55f981042516472e063eef9d51b0c" title="drush_pm_find_project\l_from_extension" alt="" coords="877,366,1029,413"/><area shape="rect" id="node66" href="make_8drush_8inc.html#ac8b7447fddc5e9edc48acd98aa680fe5" title="make_prepare_projects" alt="" coords="875,436,1032,465"/><area shape="rect" id="node60" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="1093,280,1243,309"/><area shape="rect" id="node64" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1080,333,1256,363"/><area shape="rect" id="node69" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1115,437,1221,467"/><area shape="rect" id="node79" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="887,193,1020,223"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad0f3e2c7a99906109aedd3e38089c9ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_export_info </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$info</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$integer_keys</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$parents</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate code friendly to the Drupal .info format from a structured array. Mostly copied from <a href="http://drupalcode.org/viewvc/drupal/contributions/modules/features/features.export.inc">http://drupalcode.org/viewvc/drupal/contributions/modules/features/features.export.inc</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype"></td><td class="paramname">$info</td><td>An array or single value to put in a module's .info file.</td></tr>
    <tr><td class="paramtype">boolean</td><td class="paramname">$integer_keys</td><td>Use integer in keys.</td></tr>
    <tr><td class="paramtype"></td><td class="paramname">$parents</td><td>Array of parent keys (internal use only).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A code string ready to be written to a module's .info file. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00153">153</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

</div>
</div>
<a class="anchor" id="adf7f9343eeb27ca1be960ebb3a948b13"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_export_ini </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$ini</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate an .ini file. used by archive-dump."</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$ini</td><td>A two dimensional associative array where top level are sections and second level are key =&gt; value pairs.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string .ini formatted text. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00121">121</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="archive_8drush_8inc_source.html#l00071">drush_archive_dump()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_adf7f9343eeb27ca1be960ebb3a948b13_icgraph.png" border="0" usemap="#drush_8inc_adf7f9343eeb27ca1be960ebb3a948b13_icgraph" alt=""/></div>
<map name="drush_8inc_adf7f9343eeb27ca1be960ebb3a948b13_icgraph" id="drush_8inc_adf7f9343eeb27ca1be960ebb3a948b13_icgraph">
<area shape="rect" id="node3" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="172,5,313,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a78aae9f3ebfdb2bee27dee73fe088652"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_file_is_tarball </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check whether a file is a supported tarball.</p>
<dl class="section return"><dt>Returns</dt><dd>mixed The file content type if it's a tarball. FALSE otherwise. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00926">926</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

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

<p>Referenced by <a class="el" href="drush_8inc_source.html#l00958">drush_tarball_extract()</a>, <a class="el" href="make_8download_8inc_source.html#l00110">make_download_file_unpack()</a>, and <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_cgraph.png" border="0" usemap="#drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_cgraph" alt=""/></div>
<map name="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_cgraph" id="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a4ff511402c9ffe30239b8bdbee33a3dc" title="drush_mime_content_type" alt="" coords="193,75,367,104"/><area shape="rect" id="node5" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="629,75,707,104"/><area shape="rect" id="node12" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="453,19,491,48"/><area shape="rect" id="node21" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="416,127,528,156"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1047,101,1175,131"/><area shape="rect" id="node9" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="809,127,964,156"/><area shape="rect" id="node14" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="601,5,735,51"/><area shape="rect" id="node16" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="815,19,959,48"/><area shape="rect" id="node18" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1013,19,1208,48"/><area shape="rect" id="node24" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="577,179,759,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="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_icgraph.png" border="0" usemap="#drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_icgraph" alt=""/></div>
<map name="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_icgraph" id="drush_8inc_a78aae9f3ebfdb2bee27dee73fe088652_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#ad8f8c8d5b65e0d9a863173da63ef78ee" title="drush_tarball_extract" alt="" coords="207,119,348,148"/><area shape="rect" id="node7" href="make_8download_8inc.html#a39dc84607968d96b01b9edcda21a8422" title="make_download_file\l_unpack" alt="" coords="435,5,573,51"/><area shape="rect" id="node18" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5" title="Drush\\Sql\\SqlBase\\query" alt="" coords="193,347,361,376"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="429,75,579,104"/><area shape="rect" id="node13" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="413,127,595,174"/><area shape="rect" id="node15" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="412,197,596,227"/><area shape="rect" id="node9" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="657,13,796,43"/><area shape="rect" id="node11" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="856,13,997,43"/><area shape="rect" id="node20" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="411,251,597,280"/><area shape="rect" id="node24" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890" title="Drush\\Sql\\Sqlmysql\l\\listTables" alt="" coords="435,303,573,350"/><area shape="rect" id="node26" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6" title="Drush\\Sql\\Sqlpgsql\l\\listTables" alt="" coords="437,373,571,419"/><area shape="rect" id="node28" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673" title="Drush\\Sql\\Sqlsqlite\l\\listTables" alt="" coords="437,442,571,489"/><area shape="rect" id="node30" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c" title="Drush\\Sql\\Sqlsqlsrv\l\\listTables" alt="" coords="435,511,573,558"/><area shape="rect" id="node22" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="645,242,808,289"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad5c64f6b9992f47ec358e1ad820c36f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_flatten_array </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert a nested array into a flat array. Thows away the array keys, returning only the values.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$args</td><td>An array that may potentially be nested. e.g. array('a', array('b', 'c'))</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array A simple list of items (e.g. array('a','b','c') </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00207">207</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a5684e71a8f8639ee7805a502c6e0cfc4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_generate_password </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$length</em> = <code>10</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a random alphanumeric password. Copied from user.module. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01905">1905</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

</div>
</div>
<a class="anchor" id="ac0c5cc8dc02832fb068ca98efd0712c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_class </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$class_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$constructor_args</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$variations</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Provide a version-specific class instance.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$class_name</td><td>The name of the class to instantiate. Appends the Drupal major version number to the end of the class name before instantiation. </td></tr>
    <tr><td class="paramname">$constructor_args</td><td>An array of arguments to pass to the class constructor.</td></tr>
  </table>
  </dd>
</dl>
<p>Example wrapper class to instantiate a widget, called with the arguments for the WIDGET_CLASS constructor:</p>
<p>function drush_WIDGET_CLASS_get_class($widgetName, $widgetStyle) { retrun drush_get_class('Widget_Class', func_get_args())); } </p>

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

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>.</p>

<p>Referenced by <a class="el" href="sql_8drush_8inc_source.html#l00642">drush_sql_get_class()</a>, <a class="el" href="user_8drush_8inc_source.html#l00240">drush_user_get_class()</a>, <a class="el" href="user_8drush_8inc_source.html#l00229">drush_usersingle_get_class()</a>, and <a class="el" href="includes_2environment_8inc_source.html#l00375">drush_valid_db_credentials()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_cgraph.png" border="0" usemap="#drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_cgraph" alt=""/></div>
<map name="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_cgraph" id="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="172,23,305,70"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="356,32,500,61"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="549,5,744,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="583,59,711,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="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_icgraph.png" border="0" usemap="#drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_icgraph" alt=""/></div>
<map name="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_icgraph" id="drush_8inc_ac0c5cc8dc02832fb068ca98efd0712c4_icgraph">
<area shape="rect" id="node3" href="sql_8drush_8inc.html#a828cf565e2e7e569e41c3fbe8a8e0cf0" title="drush_sql_get_class" alt="" coords="175,299,316,328"/><area shape="rect" id="node27" href="includes_2environment_8inc.html#adbd40db8b61325ed439ffe618f56282a" title="drush_valid_db_credentials" alt="" coords="368,539,547,568"/><area shape="rect" id="node31" href="user_8drush_8inc.html#a9391875688c0d7b0ba392d6e0adbe704" title="drush_user_get_class" alt="" coords="171,720,320,749"/><area shape="rect" id="node56" href="user_8drush_8inc.html#afb27d5bf16b1727a0d31a455e655e07f" title="drush_usersingle_get\l_class" alt="" coords="173,887,317,934"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="387,5,528,35"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="383,59,532,88"/><area shape="rect" id="node9" href="group__filesystemfunctions.html#gaa69fcbb2b3c7a50c42f8fb10b4067364" title="drush_preflight_backup_dir" alt="" coords="369,112,545,141"/><area shape="rect" id="node13" href="sql_8drush_8inc.html#af98d2fe4af349cc28668b6f64a0975ec" title="drush_sql_conf" alt="" coords="403,165,512,195"/><area shape="rect" id="node15" href="sql_8drush_8inc.html#a5744455db8f6228038e54def1d1d8fd7" title="drush_sql_connect" alt="" coords="392,219,523,248"/><area shape="rect" id="node17" href="sql_8drush_8inc.html#abf491ac1afcb96f58020dc2204094ebb" title="drush_sql_create" alt="" coords="397,272,517,301"/><area shape="rect" id="node19" href="sql_8drush_8inc.html#ac538b2fa7b1421461139b1a420531cba" title="drush_sql_drop" alt="" coords="403,325,512,355"/><area shape="rect" id="node21" href="sql_8drush_8inc.html#a12a61bf397d9e982f78d2af3711e153f" title="drush_sql_dump" alt="" coords="399,379,516,408"/><area shape="rect" id="node23" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5" title="drush_sql_query" alt="" coords="399,432,516,461"/><area shape="rect" id="node25" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="392,485,523,515"/><area shape="rect" id="node11" href="group__filesystemfunctions.html#ga8b411cc66e895a6ea8a50c5560b15684" title="drush_prepare_backup_dir" alt="" coords="596,112,769,141"/><area shape="rect" id="node29" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a59a8442c329d4d7880811393c71a716c" title="_drush_bootstrap_drupal\l_database_validate" alt="" coords="601,530,764,577"/><area shape="rect" id="node33" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="380,591,535,638"/><area shape="rect" id="node35" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="608,626,757,673"/><area shape="rect" id="node45" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a8f74e941becc202245a778c92fad0a09" title="_drush_bootstrap_drupal\l_login" alt="" coords="376,711,539,758"/><area shape="rect" id="node48" href="runserver_8drush_8inc.html#a8db8226cf620f67826b59f6091142f60" title="drush_core_runserver" alt="" coords="384,781,531,811"/><area shape="rect" id="node50" href="user_8drush_8inc.html#a3cfe4fbd8a075caff1ec789d42878c71" title="drush_user_create" alt="" coords="393,835,521,864"/><area shape="rect" id="node52" href="classDrush_1_1User_1_1UserList.html#acfa93b5cf17885df31994b2f6588802e" title="Drush\\User\\UserList\l\\getFromParameters" alt="" coords="387,887,528,934"/><area shape="rect" id="node37" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="819,581,965,611"/><area shape="rect" id="node41" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="832,635,952,664"/><area shape="rect" id="node43" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="823,688,961,717"/><area shape="rect" id="node39" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1015,581,1175,611"/><area shape="rect" id="node54" href="classDrush_1_1User_1_1UserList.html#afa86c99db80a52e01029afae8e986243" title="Drush\\User\\UserList\l\\__construct" alt="" coords="612,887,753,934"/><area shape="rect" id="node58" href="classDrush_1_1User_1_1UserVersion.html#a05e3fcb6ccb8316d1bbbad4223a470b0" title="Drush\\User\\UserVersion\l\\getCurrentUserAsSingle" alt="" coords="375,957,540,1003"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="acb0a26e79bcbdd1152d59a6916a35aae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_global_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$brief</em> = <code>FALSE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the available global options. Used by help command. Command files may modify this list using <a class="el" href="group__hooks.html#ga013c29fff5780421e512662dffb3ee6c">hook_drush_help_alter()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">boolean</td><td class="paramname">$brief</td><td>Return a reduced set of important options. Used by help command.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An associative array containing the option definition as the key, and a descriptive array for each of the available options. The array elements for each item are:</dd></dl>
<ul>
<li>short-form: The shortcut form for specifying the key on the commandline.</li>
<li>context: The drush context where the value of this item is cached. Used by backend invoke to propagate values set in code.</li>
<li>never-post: If TRUE, backend invoke will never POST this item's value on STDIN; it will always be sent as a commandline option.</li>
<li>never-propagate: If TRUE, backend invoke will never pass this item on to the subcommand being executed.</li>
<li>local-context-only: Backend invoke will only pass this value on for local calls.</li>
<li>merge: For options such as $options['shell-aliases'] that consist of an array of items, make a merged array that contains all of the values specified for all of the contexts (config files) where the option is defined. The value is stored in the specified 'context', or in a context named after the option itself if the context flag is not specified. IMPORTANT: When the merge flag is used, the option value must be obtained via drush_get_context('option') rather than drush_get_option('option').</li>
<li>merge-pathlist: For options such as &ndash;include and &ndash;config, make a merged list of options from all contexts; works like the 'merge' flag, but also handles string values separated by the PATH_SEPARATOR.</li>
<li>merge-associative: Like 'merge-pathlist', but key values are preserved.</li>
<li>propagate-cli-value: Used to tell backend invoke to include the value for this item as specified on the cli. This can either override 'context' (e.g., propagate &ndash;include from cli value instead of DRUSH_INCLUDE context), or for an independent global setting (e.g. &ndash;user)</li>
<li>description: The help text for this item. displayed by <code>drush help</code>. </li>
</ul>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00255">255</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01267">drush_command_invoke_all_ref()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00887">_drush_backend_classify_options()</a>, <a class="el" href="backend_8inc_source.html#l00848">_drush_backend_get_global_contexts()</a>, <a class="el" href="includes_2command_8inc_source.html#l00535">_drush_verify_cli_options()</a>, <a class="el" href="complete_8inc_source.html#l00450">drush_complete_rebuild()</a>, <a class="el" href="context_8inc_source.html#l00197">drush_expand_short_form_options()</a>, <a class="el" href="includes_2command_8inc_source.html#l00665">drush_redispatch_get_options()</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="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_cgraph.png" border="0" usemap="#drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_cgraph" alt=""/></div>
<map name="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_cgraph" id="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="224,23,387,70"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="435,32,627,61"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="679,5,831,35"/><area shape="rect" id="node9" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="676,59,833,88"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="884,59,1012,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="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_icgraph.png" border="0" usemap="#drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_icgraph" alt=""/></div>
<map name="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_icgraph" id="drush_8inc_acb0a26e79bcbdd1152d59a6916a35aae_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a" title="_drush_backend_classify\l_options" alt="" coords="225,746,393,793"/><area shape="rect" id="node67" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0" title="_drush_backend_get\l_global_contexts" alt="" coords="239,677,380,723"/><area shape="rect" id="node70" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="225,260,393,289"/><area shape="rect" id="node80" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1139,1531,1296,1560"/><area shape="rect" id="node86" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="240,1410,379,1457"/><area shape="rect" id="node89" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="444,1530,612,1577"/><area shape="rect" id="node105" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="668,258,815,305"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="451,677,605,723"/><area shape="rect" id="node7" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="665,685,817,715"/><area shape="rect" id="node61" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="921,112,1028,141"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="904,429,1045,459"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="900,1165,1049,1195"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="905,1219,1044,1248"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="901,1272,1048,1301"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="892,59,1057,88"/><area shape="rect" id="node19" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="896,1325,1053,1355"/><area shape="rect" id="node21" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="897,482,1052,529"/><area shape="rect" id="node23" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="895,552,1055,581"/><area shape="rect" id="node25" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1164,285,1271,315"/><area shape="rect" id="node27" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="901,165,1048,195"/><area shape="rect" id="node30" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="904,605,1045,635"/><area shape="rect" id="node32" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="887,659,1063,688"/><area shape="rect" id="node34" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="884,712,1065,741"/><area shape="rect" id="node36" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="869,765,1080,795"/><area shape="rect" id="node38" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="899,5,1051,35"/><area shape="rect" id="node40" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="915,272,1035,301"/><area shape="rect" id="node42" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="892,818,1057,865"/><area shape="rect" id="node44" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1132,1369,1303,1415"/><area shape="rect" id="node48" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="880,325,1069,355"/><area shape="rect" id="node50" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="872,219,1077,248"/><area shape="rect" id="node53" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="907,887,1043,934"/><area shape="rect" id="node55" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="907,957,1043,1003"/><area shape="rect" id="node57" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="896,1026,1053,1073"/><area shape="rect" id="node59" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="893,1095,1056,1142"/><area shape="rect" id="node46" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1411,1377,1499,1407"/><area shape="rect" id="node63" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1171,85,1264,115"/><area shape="rect" id="node65" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1129,139,1305,168"/><area shape="rect" id="node72" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="473,124,583,153"/><area shape="rect" id="node74" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="664,124,819,153"/><area shape="rect" id="node76" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="692,59,791,88"/><area shape="rect" id="node82" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1385,1583,1524,1612"/><area shape="rect" id="node84" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1603,1623,1752,1652"/><area shape="rect" id="node91" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="679,1615,804,1644"/><area shape="rect" id="node100" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="661,1535,821,1564"/><area shape="rect" id="node93" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="1356,1663,1553,1692"/><area shape="rect" id="node96" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="896,1637,1053,1667"/><area shape="rect" id="node98" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="889,1584,1060,1613"/><area shape="rect" id="node102" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="895,1531,1055,1560"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a80ce43b30f833522f72180811dab5a3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_include </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$version</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$extension</em> = <code>'inc'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Include a file, selecting a version specific file if available.</p>
<p>For example, if you pass the path "/var/drush" and the name "update" when bootstrapped on a Drupal 6 site it will first check for the presence of "/var/drush/update_6.inc" in include it if exists. If this file does NOT exist it will proceed and check for "/var/drush/update.inc". If neither file exists, it will return FALSE.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$path</td><td>The path you want to search. </td></tr>
    <tr><td class="paramname">$name</td><td>The file base name you want to include (not including a version suffix or extension). </td></tr>
    <tr><td class="paramname">$version</td><td>The version suffix you want to include (could be specific to the software or platform your are connecting to) - defaults to the current Drupal core major version. </td></tr>
    <tr><td class="paramname">$extension</td><td>The extension - defaults to ".inc".</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the file was found and included. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00063">63</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>.</p>

<p>Referenced by <a class="el" href="engines_8inc_source.html#l00479">drush_include_engine()</a>, and <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a80ce43b30f833522f72180811dab5a3e_cgraph.png" border="0" usemap="#drush_8inc_a80ce43b30f833522f72180811dab5a3e_cgraph" alt=""/></div>
<map name="drush_8inc_a80ce43b30f833522f72180811dab5a3e_cgraph" id="drush_8inc_a80ce43b30f833522f72180811dab5a3e_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="159,23,292,70"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="343,32,487,61"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="536,5,731,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="569,59,697,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="drush_8inc_a80ce43b30f833522f72180811dab5a3e_icgraph.png" border="0" usemap="#drush_8inc_a80ce43b30f833522f72180811dab5a3e_icgraph" alt=""/></div>
<map name="drush_8inc_a80ce43b30f833522f72180811dab5a3e_icgraph" id="drush_8inc_a80ce43b30f833522f72180811dab5a3e_icgraph">
<area shape="rect" id="node3" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="157,867,304,896"/><area shape="rect" id="node115" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="165,920,296,949"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="379,5,520,35"/><area shape="rect" id="node7" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="376,59,523,88"/><area shape="rect" id="node9" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="376,111,523,158"/><area shape="rect" id="node11" href="core_8drush_8inc.html#adebaebb0b4f27f018d98cf29420de69f" title="drush_core_requirements" alt="" coords="365,181,533,211"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a29b2ff77f4ca8032f23039c5d835c7ad" title="drush_core_updatedb\l_batch_process" alt="" coords="376,234,523,281"/><area shape="rect" id="node15" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="375,303,524,350"/><area shape="rect" id="node25" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="371,373,528,403"/><area shape="rect" id="node29" href="includes_2environment_8inc.html#a2f6ea049bc3f5361815aafe6f44a535d" title="drush_get_extensions" alt="" coords="375,427,524,456"/><area shape="rect" id="node35" href="group__extensions.html#gadf92772f6521fbc75a53ccec7e5e007e" title="drush_get_projects" alt="" coords="623,609,753,639"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a317a284967256e1c0452a13462388c21" title="drush_extension_get_name" alt="" coords="359,531,540,560"/><area shape="rect" id="node57" href="includes_2environment_8inc.html#a5536e4ffcf1cdf1f176e15a3aed81af7" title="drush_extension_get_type" alt="" coords="363,1133,536,1163"/><area shape="rect" id="node70" href="includes_2environment_8inc.html#a62a951f395505ed28ea3f0a5a108419c" title="drush_extension_get_path" alt="" coords="363,584,536,613"/><area shape="rect" id="node75" href="includes_2environment_8inc.html#a57dd90a056796e9c5cd43b9c0ddb8f3e" title="drush_theme_get_default" alt="" coords="365,707,533,736"/><area shape="rect" id="node77" href="includes_2environment_8inc.html#a53d271b99022c85e63b4b47015d47341" title="drush_theme_get_admin" alt="" coords="368,760,531,789"/><area shape="rect" id="node79" href="includes_2environment_8inc.html#aec9b1fcb95f06fe8101c3deb3e5d0be0" title="drush_file_get_public" alt="" coords="377,813,521,843"/><area shape="rect" id="node81" href="includes_2environment_8inc.html#a222673d87e8d1364deecea540731945f" title="drush_file_get_private" alt="" coords="375,867,524,896"/><area shape="rect" id="node83" href="update__6_8inc.html#a39592132a77fd791c44a8d6faf362cb0" title="update_check_incompatibility" alt="" coords="353,920,545,949"/><area shape="rect" id="node85" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="352,973,547,1003"/><area shape="rect" id="node87" href="test_8drush_8inc.html#a51877c20991275c2f1b3db7ed15aa82e" title="test_test_run_complete" alt="" coords="371,1027,528,1056"/><area shape="rect" id="node89" href="git__drupalorg_8inc.html#ae203b6a2394bb0cae2970befc56eea36" title="package_handler_validate" alt="" coords="364,1080,535,1109"/><area shape="rect" id="node92" href="pm_8drush_8inc.html#a9ac55f981042516472e063eef9d51b0c" title="drush_pm_find_project\l_from_extension" alt="" coords="373,637,525,683"/><area shape="rect" id="node95" href="pm_8drush_8inc.html#aa99b7d46939c1f550211d2c09a72b977" title="drush_pm_enable" alt="" coords="388,1187,511,1216"/><area shape="rect" id="node97" href="pm_8drush_8inc.html#a836eda9c253a0e7edd01c683fe2d6d00" title="drush_pm_disable" alt="" coords="387,1240,512,1269"/><area shape="rect" id="node99" href="pm_8drush_8inc.html#a89e844acc44eb017c1a12840164316af" title="drush_pm_uninstall" alt="" coords="383,1293,516,1323"/><area shape="rect" id="node101" href="pm_8drush_8inc.html#a7a7640133c515e06c96d0f4262b98c51" title="drush_pm_include_version\l_control" alt="" coords="361,1346,537,1393"/><area shape="rect" id="node103" href="includes_2drupal_8inc.html#ac194fb53f4e5500f275a2debb0dfc608" title="system_watchdog" alt="" coords="385,1416,513,1445"/><area shape="rect" id="node105" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="357,1469,541,1499"/><area shape="rect" id="node107" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31" title="drush_version_control\l_reserved_files" alt="" coords="375,1522,524,1569"/><area shape="rect" id="node109" href="engines_8inc.html#af360562cce71af9828bbbb7326b1d7a8" title="drush_load_engine" alt="" coords="384,1592,515,1621"/><area shape="rect" id="node111" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adc30118a77a2f8c97e22215bd5d2ac08" title="_drush_bootstrap_drupal_full" alt="" coords="356,1645,543,1675"/><area shape="rect" id="node113" href="classUnish_1_1releaseInfoCase.html#ac6674cd3b0e5cb2861e3550cf88fd320" title="Unish\\releaseInfoCase\l\\testReleaseXML" alt="" coords="372,1698,527,1745"/><area shape="rect" id="node17" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="615,193,761,223"/><area shape="rect" id="node21" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="628,140,748,169"/><area shape="rect" id="node23" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="619,87,757,116"/><area shape="rect" id="node19" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="839,453,999,483"/><area shape="rect" id="node27" href="core_8drush_8inc.html#abffb38d0c5a78975e70033cb09f57ecb" title="drush_core_batch_process" alt="" coords="599,247,777,276"/><area shape="rect" id="node31" href="pm_8drush_8inc.html#a5f41049d5b474b8d5bbbe9f161ac1c90" title="_drush_pm_expand_extensions" alt="" coords="1056,297,1261,327"/><area shape="rect" id="node33" href="info_8pm_8inc.html#a979f36be571c082a364025ae4bce438b" title="drush_pm_info" alt="" coords="1309,505,1416,535"/><area shape="rect" id="node38" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="613,401,763,431"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="600,815,776,844"/><area shape="rect" id="node43" href="pm_8drush_8inc.html#a61ebecaa80b51380169ddd81f751f0df" title="drush_pm_list" alt="" coords="868,963,969,992"/><area shape="rect" id="node46" href="group__extensions.html#ga7a2fb27ecd55a327d27d97a59a62c2d6" title="pm_complete_extensions" alt="" coords="603,505,773,535"/><area shape="rect" id="node50" href="info_8pm_8inc.html#a0bf627d419ca89d4d9e5f0f3a54e457d" title="_drush_pm_info_extension" alt="" coords="831,763,1007,792"/><area shape="rect" id="node52" href="info_8pm_8inc.html#ad8628d53d40f2db788ec0bec2f9ac62e" title="_drush_pm_info_module" alt="" coords="1077,661,1240,691"/><area shape="rect" id="node60" href="group__extensions.html#ga293092b949a0837e3208f57ddb837c3c" title="_drush_pm_sort_extensions" alt="" coords="596,1081,780,1111"/><area shape="rect" id="node62" href="group__extensions.html#gad7c908db0c414731d0933c93c4b083ea" title="drush_get_extension\l_status" alt="" coords="617,954,759,1001"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad847f03f1d1c046f9eb472aafa56137c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_map_assoc </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$function</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Form an associative array from a linear array.</p>
<p>This function walks through the provided array and constructs an associative array out of it. The keys of the resulting array will be the values of the input array. The values will be the same as the keys unless a function is specified, in which case the output of the function is used for the values instead.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$array</td><td>A linear array. </td></tr>
    <tr><td class="paramname">$function</td><td>A name of a function to apply to all values before output.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An associative array. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01946">1946</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="config_8drush_8inc_source.html#l00267">drush_config_export()</a>, <a class="el" href="config_8drush_8inc_source.html#l00322">drush_config_import()</a>, and <a class="el" href="core_8drush_8inc_source.html#l00662">drush_core_config()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_ad847f03f1d1c046f9eb472aafa56137c_icgraph.png" border="0" usemap="#drush_8inc_ad847f03f1d1c046f9eb472aafa56137c_icgraph" alt=""/></div>
<map name="drush_8inc_ad847f03f1d1c046f9eb472aafa56137c_icgraph" id="drush_8inc_ad847f03f1d1c046f9eb472aafa56137c_icgraph">
<area shape="rect" id="node3" href="config_8drush_8inc.html#a6258f151a3c27b586409d46f1799a666" title="drush_config_export" alt="" coords="181,5,320,35"/><area shape="rect" id="node5" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="181,59,320,88"/><area shape="rect" id="node7" href="core_8drush_8inc.html#a7f88afe2a5459be981ef1cfa4a60af65" title="drush_core_config" alt="" coords="187,112,315,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a78afaf6bac26a5964c39db973deb0783"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_memory_limit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>End of "defgroup errorhandling". Get the PHP memory_limit value in bytes. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01852">1852</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00031">DRUSH_KILOBYTE</a>.</p>

<p>Referenced by <a class="el" href="commands_2core_2drupal_2batch_8inc_source.html#l00114">_drush_batch_worker()</a>, and <a class="el" href="includes_2environment_8inc_source.html#l00067">_drush_postmortem()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a78afaf6bac26a5964c39db973deb0783_icgraph.png" border="0" usemap="#drush_8inc_a78afaf6bac26a5964c39db973deb0783_icgraph" alt=""/></div>
<map name="drush_8inc_a78afaf6bac26a5964c39db973deb0783_icgraph" id="drush_8inc_a78afaf6bac26a5964c39db973deb0783_icgraph">
<area shape="rect" id="node3" href="commands_2core_2drupal_2batch_8inc.html#a10c0d541fd31cfed1eed4caed37e30fa" title="_drush_batch_worker" alt="" coords="192,5,339,35"/><area shape="rect" id="node11" href="includes_2environment_8inc.html#accdd70b0d8ea4f41c26f87348488ee83" title="_drush_postmortem" alt="" coords="197,59,333,88"/><area shape="rect" id="node5" href="commands_2core_2drupal_2batch_8inc.html#afa58efbd11be795ce39d4d14f4ac35e0" title="_drush_batch_command" alt="" coords="388,5,551,35"/><area shape="rect" id="node7" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="600,5,757,35"/><area shape="rect" id="node9" href="core_8drush_8inc.html#abffb38d0c5a78975e70033cb09f57ecb" title="drush_core_batch_process" alt="" coords="805,5,984,35"/><area shape="rect" id="node13" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="411,59,528,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4ff511402c9ffe30239b8bdbee33a3dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_mime_content_type </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determines the MIME content type of the specified file.</p>
<p>The power of this function depends on whether the PHP installation has either mime_content_type() or finfo installed &ndash; if not, only tar, gz, zip and bzip2 types can be detected.</p>
<p>If mime type can't be obtained, an error will be set.</p>
<dl class="section return"><dt>Returns</dt><dd>mixed The MIME content type of the file or FALSE. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00838">838</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <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>Referenced by <a class="el" href="drush_8inc_source.html#l00926">drush_file_is_tarball()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_cgraph.png" border="0" usemap="#drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_cgraph" alt=""/></div>
<map name="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_cgraph" id="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="443,5,520,35"/><area shape="rect" id="node10" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="229,96,341,125"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="267,179,304,208"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="860,81,988,111"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="623,56,777,85"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="391,160,572,189"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="415,213,548,259"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="628,160,772,189"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="827,160,1021,189"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_icgraph.png" border="0" usemap="#drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_icgraph" alt=""/></div>
<map name="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_icgraph" id="drush_8inc_a4ff511402c9ffe30239b8bdbee33a3dc_icgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="231,119,367,148"/><area shape="rect" id="node5" href="drush_8inc.html#ad8f8c8d5b65e0d9a863173da63ef78ee" title="drush_tarball_extract" alt="" coords="431,119,572,148"/><area shape="rect" id="node9" href="make_8download_8inc.html#a39dc84607968d96b01b9edcda21a8422" title="make_download_file\l_unpack" alt="" coords="659,5,797,51"/><area shape="rect" id="node20" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5" title="Drush\\Sql\\SqlBase\\query" alt="" coords="417,347,585,376"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="653,75,803,104"/><area shape="rect" id="node15" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="637,127,819,174"/><area shape="rect" id="node17" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="636,197,820,227"/><area shape="rect" id="node11" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="881,13,1020,43"/><area shape="rect" id="node13" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="1080,13,1221,43"/><area shape="rect" id="node22" href="classDrush_1_1Sql_1_1SqlBase.html#ab535d0d2d28dcbae9c83f1f62328a3a5" title="Drush\\Sql\\SqlBase\\createdb" alt="" coords="635,251,821,280"/><area shape="rect" id="node26" href="classDrush_1_1Sql_1_1Sqlmysql.html#ada72881fa1ee6a7463c570f129c39890" title="Drush\\Sql\\Sqlmysql\l\\listTables" alt="" coords="659,303,797,350"/><area shape="rect" id="node28" href="classDrush_1_1Sql_1_1Sqlpgsql.html#a3ba61916404cdef744d23c08d2e395b6" title="Drush\\Sql\\Sqlpgsql\l\\listTables" alt="" coords="661,373,795,419"/><area shape="rect" id="node30" href="classDrush_1_1Sql_1_1Sqlsqlite.html#a62317dd9072f29c1af6a7bdd4ae42673" title="Drush\\Sql\\Sqlsqlite\l\\listTables" alt="" coords="661,442,795,489"/><area shape="rect" id="node32" href="classDrush_1_1Sql_1_1Sqlsqlsrv.html#a765255867524cc6404b302f39e04057c" title="Drush\\Sql\\Sqlsqlsrv\l\\listTables" alt="" coords="659,511,797,558"/><area shape="rect" id="node24" href="classDrush_1_1Sql_1_1SqlBase.html#a68828a0633827f0dde26a869e4b89e86" title="Drush\\Sql\\SqlBase\\drop\l_or_create" alt="" coords="869,242,1032,289"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a903c36790dbe5525fe9369c8476780af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_op </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$function</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>End of "defgroup userinput". Calls a given function, passing through all arguments unchanged.</p>
<p>This should be used when calling possibly mutative or destructive functions (e.g. unlink() and other file system functions) so that can be suppressed if the simulation mode is enabled.</p>
<p>Important: Call </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__commandwrappers.html#ga9199c80718bb0497997bd9f7b783911a">drush_op_system()</a> to execute a shell command, or </dd>
<dd>
<a class="el" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556">drush_shell_exec()</a> to execute a shell command and capture the shell output.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$function</td><td>The name of the function. Any additional arguments are passed along. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The return value of the function, or TRUE if simulation mode is enabled. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00659">659</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00686">drush_call_user_func_array()</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>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="views_8d8_8drush_8inc_source.html#l00370">_views_drush_op()</a>, <a class="el" href="make_8project_8inc_source.html#l00247">DrushMakeProject\applyPatches()</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="config_8drush_8inc_source.html#l00322">drush_config_import()</a>, <a class="el" href="filesystem_8inc_source.html#l00215">drush_copy_dir()</a>, <a class="el" href="filesystem_8inc_source.html#l00302">drush_move_dir()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01545">drush_pm_update_lock()</a>, <a class="el" href="filesystem_8inc_source.html#l00661">drush_scan_directory()</a>, <a class="el" href="exec_8inc_source.html#l00054">drush_shell_cd_and_exec()</a>, <a class="el" href="drush_8inc_source.html#l00958">drush_tarball_extract()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00468">make_get_data()</a>, <a class="el" href="wget_8inc_source.html#l00038">package_handler_download_project()</a>, and <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a903c36790dbe5525fe9369c8476780af_cgraph.png" border="0" usemap="#drush_8inc_a903c36790dbe5525fe9369c8476780af_cgraph" alt=""/></div>
<map name="drush_8inc_a903c36790dbe5525fe9369c8476780af_cgraph" id="drush_8inc_a903c36790dbe5525fe9369c8476780af_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="129,5,273,51"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="745,151,873,180"/><area shape="rect" id="node7" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="352,125,429,155"/><area shape="rect" id="node13" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="183,203,220,232"/><area shape="rect" id="node10" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="508,176,663,205"/><area shape="rect" id="node15" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="324,207,457,254"/><area shape="rect" id="node17" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="513,229,657,259"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="712,229,907,259"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a903c36790dbe5525fe9369c8476780af_icgraph.png" border="0" usemap="#drush_8inc_a903c36790dbe5525fe9369c8476780af_icgraph" alt=""/></div>
<map name="drush_8inc_a903c36790dbe5525fe9369c8476780af_icgraph" id="drush_8inc_a903c36790dbe5525fe9369c8476780af_icgraph">
<area shape="rect" id="node3" href="views_8d8_8drush_8inc.html#ad614c55f8108f223a31dc1c6c112c163" title="_views_drush_op" alt="" coords="153,59,276,88"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="355,525,568,555"/><area shape="rect" id="node13" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="644,123,785,152"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="640,876,789,905"/><area shape="rect" id="node17" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="145,1717,284,1747"/><area shape="rect" id="node19" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="160,473,269,503"/><area shape="rect" id="node37" href="drush_8inc.html#ad8f8c8d5b65e0d9a863173da63ef78ee" title="drush_tarball_extract" alt="" coords="391,701,532,731"/><area shape="rect" id="node42" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="624,559,805,606"/><area shape="rect" id="node44" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="404,264,519,293"/><area shape="rect" id="node66" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="644,1851,785,1880"/><area shape="rect" id="node68" href="pm_8drush_8inc.html#ae6681be57636d2db04f48bcc85588b2c" title="drush_pm_update_lock" alt="" coords="137,1771,292,1800"/><area shape="rect" id="node72" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="141,1368,288,1397"/><area shape="rect" id="node112" href="group__commandwrappers.html#ga59e8ee9f53442f2029080ac723ed008f" title="drush_shell_cd_and_exec" alt="" coords="129,640,300,669"/><area shape="rect" id="node120" href="make_8utilities_8inc.html#aae2ffe8335a86abf135357cfdac212d0" title="make_get_data" alt="" coords="160,1824,269,1853"/><area shape="rect" id="node123" href="classDrush_1_1Sql_1_1SqlBase.html#a52e0c44fc5008ba624f54c2f439b0ae5" title="Drush\\Sql\\SqlBase\\query" alt="" coords="131,1877,299,1907"/><area shape="rect" id="node5" href="views_8d8_8drush_8inc.html#a57c880b394aed2fcbc92df64aff008a5" title="drush_views_disable" alt="" coords="391,5,532,35"/><area shape="rect" id="node7" href="views_8d8_8drush_8inc.html#afb0fd06776785d9525080d414e981ccb" title="drush_views_enable" alt="" coords="392,59,531,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="632,789,797,819"/><area shape="rect" id="node21" href="make_8download_8inc.html#a74fc37b0ad8db7422b33cbadbe302325" title="_make_download_file_move" alt="" coords="621,629,808,659"/><area shape="rect" id="node23" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="393,579,529,608"/><area shape="rect" id="node25" href="make_8download_8inc.html#ac808bd6438397ca205135d0345cf4721" title="make_download_bzr" alt="" coords="391,317,532,347"/><area shape="rect" id="node27" href="make_8drush_8inc.html#ae5eb2a2403d96afcef3d5f85ee7ae284" title="make_move_build" alt="" coords="652,683,777,712"/><area shape="rect" id="node30" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="351,856,572,885"/><area shape="rect" id="node33" href="make_8utilities_8inc.html#a7ac27f598c36208652191f40f08c2332" title="make_prepare_install" alt="" coords="389,371,533,400"/><area shape="rect" id="node35" href="classdrush__version__control__backup.html#aa6d4b12d4fe6e525ca364a57cbf769f8" title="drush_version_control\l_backup\\pre_update" alt="" coords="640,175,789,222"/><area shape="rect" id="node40" href="make_8download_8inc.html#a39dc84607968d96b01b9edcda21a8422" title="make_download_file\l_unpack" alt="" coords="645,490,784,537"/><area shape="rect" id="node51" href="make_8utilities_8inc.html#ae5b2297055f24062509236670e55dc2a" title="make_tar" alt="" coords="677,368,752,397"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#ab11eea54f55781b92561a28a8e39f224" title="_pm_update_move_files" alt="" coords="633,1456,796,1485"/><area shape="rect" id="node59" href="classdrush__version__control__backup.html#a0957924f0360e2afa4133063a514e22f" title="drush_version_control\l_backup\\rollback" alt="" coords="640,421,789,467"/><area shape="rect" id="node61" href="sync__via__http_8drush_8inc.html#ababb0956fc32b685a05e6ccef8347672" title="_drush_sync_via_http\l_download_file" alt="" coords="640,245,789,291"/><area shape="rect" id="node63" href="drush_8inc.html#a5c2a88712f3905874900166f3b2c397c" title="_drush_download_file" alt="" coords="641,315,788,344"/><area shape="rect" id="node56" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="856,1456,981,1485"/><area shape="rect" id="node70" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="381,2083,541,2112"/><area shape="rect" id="node74" href="archive_8drush_8inc.html#a51085ff955b6905e494c7da6cd84e028" title="drush_archive_guess\l_manifest" alt="" coords="389,1010,533,1057"/><area shape="rect" id="node77" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="385,1080,537,1109"/><area shape="rect" id="node79" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="383,1133,540,1163"/><area shape="rect" id="node81" href="sitealias_8drush_8inc.html#abc87a944e5c22e954bfed08dcd874e02" title="_drush_sitealias_site_list" alt="" coords="377,1187,545,1216"/><area shape="rect" id="node87" href="download_8pm_8inc.html#ab35a163fb97c0a4e0668f0e2b7c78559" title="pm_drush_pm_download\l_destination_alter" alt="" coords="379,1239,544,1286"/><area shape="rect" id="node89" href="pm_8drush_8inc.html#acf732982c7f481e1bfc50db3bd269de9" title="drush_pm_extensions\l_in_project" alt="" coords="387,1842,536,1889"/><area shape="rect" id="node92" href="pm_8drush_8inc.html#ae5c95f9279eaddddd401970d1065c023" title="drush_pm_inject_info\l_file_metadata" alt="" coords="389,1359,533,1406"/><area shape="rect" id="node96" href="updatecode_8pm_8inc.html#a5a3737ff6d07b1666960729bf8e2d684" title="pm_update_project" alt="" coords="649,1355,780,1384"/><area shape="rect" id="node99" href="group__filesystemfunctions.html#ga0f53b7283625a345a693516b6d70ce00" title="drush_dir_md5" alt="" coords="408,1429,515,1459"/><area shape="rect" id="node101" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="389,1482,533,1529"/><area shape="rect" id="node103" href="sitealias_8inc.html#a140c677ea9e7c406a24ad323fd6b4af4" title="_drush_find_local_sites\l_at_root" alt="" coords="636,1982,793,2029"/><area shape="rect" id="node105" href="sitealias_8inc.html#a3ddde4d59f4c8fc6b7c415a152ac57ed" title="_drush_find_local_sites\l_in_sites_folder" alt="" coords="383,2013,540,2059"/><area shape="rect" id="node108" href="classDrush_1_1Cache_1_1FileCache.html#a44a013d5f478004d9899ebc189bb89d3" title="Drush\\Cache\\FileCache\l\\clear" alt="" coords="380,1703,543,1750"/><area shape="rect" id="node110" href="classDrush_1_1Cache_1_1FileCache.html#a86ab9c0ba83028da4596360f93eeebc8" title="Drush\\Cache\\FileCache\l\\isEmpty" alt="" coords="380,1773,543,1819"/><area shape="rect" id="node115" href="generate_8make_8inc.html#afbe1b490c8c2f78c3ec0634b1903782f" title="_drush_generate_custom\l_project" alt="" coords="377,631,545,678"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad8f8c8d5b65e0d9a863173da63ef78ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_tarball_extract </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$destination</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$listing</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$tar_extra_options</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Extract a tarball.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$path</td><td>Path to the archive to be extracted. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$destination</td><td>The destination directory the tarball should be extracted into. Optional, if ommitted the tarball directory will be used as destination. </td></tr>
    <tr><td class="paramtype">boolean</td><td class="paramname">$listing</td><td>If TRUE, a listing of the tar contents will be returned on success. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$tar_extra_options</td><td>Extra options to be passed to the tar command.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>mixed TRUE on success, FALSE on fail. If $listing is TRUE, a file listing of the tarball is returned if the extraction reported success, instead of TRUE. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00958">958</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="filesystem_8inc_source.html#l00215">drush_copy_dir()</a>, <a class="el" href="drush_8inc_source.html#l00926">drush_file_is_tarball()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00522">drush_get_tar_executable()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00501">drush_is_windows()</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, <a class="el" href="drush_8inc_source.html#l00659">drush_op()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="exec_8inc_source.html#l00054">drush_shell_cd_and_exec()</a>, <a class="el" href="exec_8inc_source.html#l00390">drush_shell_exec_output()</a>, <a class="el" href="filesystem_8inc_source.html#l00485">drush_tempnam()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="archive_8drush_8inc_source.html#l00310">drush_archive_restore()</a>, <a class="el" href="drush_8api_8php_source.html#l00241">drush_hook_pre_pm_enable()</a>, <a class="el" href="make_8download_8inc_source.html#l00110">make_download_file_unpack()</a>, and <a class="el" href="wget_8inc_source.html#l00038">package_handler_download_project()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_cgraph.png" border="0" usemap="#drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_cgraph" alt=""/></div>
<map name="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_cgraph" id="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="464,287,573,316"/><area shape="rect" id="node5" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="717,133,792,163"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="945,296,983,325"/><area shape="rect" id="node26" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="908,441,1020,471"/><area shape="rect" id="node35" href="drush_8inc.html#a78aae9f3ebfdb2bee27dee73fe088652" title="drush_file_is_tarball" alt="" coords="216,397,352,427"/><area shape="rect" id="node42" href="includes_2environment_8inc.html#a68b121976df4c48d67d77c020e45814f" title="drush_get_tar_executable" alt="" coords="199,641,369,671"/><area shape="rect" id="node44" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="691,717,819,747"/><area shape="rect" id="node47" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="708,493,801,523"/><area shape="rect" id="node53" href="group__commandwrappers.html#ga59e8ee9f53442f2029080ac723ed008f" title="drush_shell_cd_and_exec" alt="" coords="199,133,369,163"/><area shape="rect" id="node56" href="group__commandwrappers.html#gadba8c59ba260dd39f615bc22ca78e1af" title="drush_shell_exec_output" alt="" coords="201,503,367,532"/><area shape="rect" id="node60" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="227,556,341,585"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1139,311,1216,340"/><area shape="rect" id="node7" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="892,125,1036,171"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1556,401,1684,431"/><area shape="rect" id="node14" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1319,401,1473,431"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1111,5,1244,51"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1324,17,1468,47"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1523,17,1717,47"/><area shape="rect" id="node29" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1087,364,1268,393"/><area shape="rect" id="node37" href="drush_8inc.html#a4ff511402c9ffe30239b8bdbee33a3dc" title="drush_mime_content_type" alt="" coords="668,389,841,419"/><area shape="rect" id="node58" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="420,503,617,532"/><area shape="rect" id="node62" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="464,556,573,585"/><area shape="rect" id="node74" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="691,647,819,694"/><area shape="rect" id="node65" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1135,569,1220,599"/><area shape="rect" id="node68" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1332,569,1460,599"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_icgraph.png" border="0" usemap="#drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_icgraph" alt=""/></div>
<map name="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_icgraph" id="drush_8inc_ad8f8c8d5b65e0d9a863173da63ef78ee_icgraph">
<area shape="rect" id="node3" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="215,5,364,35"/><area shape="rect" id="node5" href="group__hooks.html#ga9e33c8f44999a71f94353d78673294c0" title="drush_hook_pre_pm_enable" alt="" coords="197,59,381,88"/><area shape="rect" id="node7" href="make_8download_8inc.html#a39dc84607968d96b01b9edcda21a8422" title="make_download_file\l_unpack" alt="" coords="220,111,359,158"/><area shape="rect" id="node13" href="wget_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="199,181,380,227"/><area shape="rect" id="node9" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="431,120,569,149"/><area shape="rect" id="node11" href="make_8download_8inc.html#a2aa73a9f71f17d7bdeb88e75489e1344" title="make_download_get" alt="" coords="619,120,760,149"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a168e5c4e0711c44cf1c54ea8c4ff2c75"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_unset_recursive </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$unset_key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Unset the named key anywhere in the provided data structure. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01871">1871</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="outputformat_8drush_8inc_source.html#l00407">drush_outputformat\process()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_a168e5c4e0711c44cf1c54ea8c4ff2c75_icgraph.png" border="0" usemap="#drush_8inc_a168e5c4e0711c44cf1c54ea8c4ff2c75_icgraph" alt=""/></div>
<map name="drush_8inc_a168e5c4e0711c44cf1c54ea8c4ff2c75_icgraph" id="drush_8inc_a168e5c4e0711c44cf1c54ea8c4ff2c75_icgraph">
<area shape="rect" id="node3" href="classdrush__outputformat.html#a69d8dba156e7b5aabb76fea0f52cfd68" title="drush_outputformat\l\\process" alt="" coords="209,5,343,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa61cd59315f7a89a8c7df8649f480a31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_version_control_reserved_files </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a list of VCSs reserved files and directories. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01885">1885</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="engines_8inc_source.html#l00057">drush_get_engines()</a>, and <a class="el" href="engines_8inc_source.html#l00479">drush_include_engine()</a>.</p>

<p>Referenced by <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, and <a class="el" href="updatecode_8pm_8inc_source.html#l00328">pm_update_project()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_cgraph.png" border="0" usemap="#drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_cgraph" alt=""/></div>
<map name="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_cgraph" id="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_cgraph">
<area shape="rect" id="node3" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="397,107,528,136"/><area shape="rect" id="node35" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="203,159,349,188"/><area shape="rect" id="node5" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="577,104,767,134"/><area shape="rect" id="node9" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="616,158,728,187"/><area shape="rect" id="node21" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="653,211,691,240"/><area shape="rect" id="node30" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1049,26,1207,55"/><area shape="rect" id="node33" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="596,51,748,80"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="817,52,999,82"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1289,156,1417,186"/><area shape="rect" id="node14" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1051,208,1205,238"/><area shape="rect" id="node17" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="869,156,947,186"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="841,260,975,306"/><area shape="rect" id="node25" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1056,264,1200,294"/><area shape="rect" id="node27" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1256,264,1451,294"/><area shape="rect" id="node40" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="412,263,513,292"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_icgraph.png" border="0" usemap="#drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_icgraph" alt=""/></div>
<map name="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_icgraph" id="drush_8inc_aa61cd59315f7a89a8c7df8649f480a31_icgraph">
<area shape="rect" id="node3" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="203,5,344,35"/><area shape="rect" id="node5" href="updatecode_8pm_8inc.html#a5a3737ff6d07b1666960729bf8e2d684" title="pm_update_project" alt="" coords="208,59,339,88"/><area shape="rect" id="node7" href="updatecode_8pm_8inc.html#a86e03f91bb50878663449ddf74b8658d" title="_pm_update_core" alt="" coords="404,32,529,61"/><area shape="rect" id="node11" href="updatecode_8pm_8inc.html#a604cbac2dc913cf35f3d4f7f79f4bc4b" title="pm_update_packages" alt="" coords="392,85,541,115"/><area shape="rect" id="node9" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="591,59,743,88"/></map>
</div>
</p>

</div>
</div>
<h2>Variable Documentation</h2>
<a class="anchor" id="ad2cac2311a09943e8f911c2d13167c4a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_APPLICATION_ERROR = 255</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The command that was executed resulted in an application error, The most commom causes for this is invalid PHP or a broken SSH pipe when using drush_backend_invoke in a distributed manner. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00022">22</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>.</p>

</div>
</div>
<a class="anchor" id="aa7401f966d8f78e341094bc304d56162"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_CACHE_LIFETIME_DEFAULT = 86400</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default amount of time, in seconds, to cache downloads via <a class="el" href="drush_8inc.html#a9cce12bffedae74c4a45174c59c79311">drush_download_file()</a>. One day is 86400 seconds. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00037">37</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a7959436c0614636c05192a563bd6cfb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_FRAMEWORK_ERROR = 1</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The command could not be completed because the framework has specified errors that have occured. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00018">18</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>.</p>

</div>
</div>
<a class="anchor" id="a0a75d4291b848dda33fab74050e0ab14"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_KILOBYTE = 1024</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>End of "name Error status defintions". The number of bytes in a kilobyte. Copied from Drupal. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00031">31</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2environment_8inc_source.html#l00067">_drush_postmortem()</a>, and <a class="el" href="drush_8inc_source.html#l01852">drush_memory_limit()</a>.</p>

</div>
</div>
<a class="anchor" id="af1fd588cf6b6a3d51e8055408ee86635"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_SUCCESS = 0</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The command completed successfully. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l00016">16</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>, <a class="el" href="drush_8inc_source.html#l01788">drush_clear_error()</a>, <a class="el" href="drush_8inc_source.html#l01753">drush_get_error()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, and <a class="el" href="test_8drush_8inc_source.html#l00110">drush_test_run()</a>.</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>