Functions

Contains filters are case sensitive
Name Locationsort descending Description
drush_print_table includes/output.inc Print a formatted table.
drush_format_table includes/output.inc Format a table of data.
_drush_format_table includes/output.inc
drush_key_value_to_array_table includes/output.inc Convert an associative array of key : value pairs into a table suitable for processing by drush_print_table.
drush_select_fields includes/output.inc Select the fields that should be used.
drush_select_output_fields includes/output.inc Select the fields from the input array that should be output.
drush_lookup_field_by_path includes/output.inc Return a specific item inside an array, as identified by the provided path.
drush_output_get_selected_field includes/output.inc Given a table array (an associative array of associative arrays), return an array of all of the values with the specified field name.
drush_hide_empty_fields includes/output.inc Hide any fields that are empty
drush_rows_of_key_value_to_array_table includes/output.inc Convert an array of data rows, where each row contains an associative array of key : value pairs, into a table suitable for processing by drush_print_table. The provided $header determines the order that the items will appear in the output. Only data…
drush_table_column_autowidth includes/output.inc Determine the best fit for column widths.
drush_print_file includes/output.inc Print the contents of a file.
drush_json_encode includes/output.inc Converts a PHP variable into its Javascript equivalent.
drush_json_decode includes/output.inc Converts an HTML-safe JSON string into its PHP equivalent.
drush_var_export includes/output.inc Drupal-friendly var_export(). Taken from utility.inc in Drupal 8.
drush_main includes/preflight.inc The main Drush function.
drush_preflight_prepare includes/preflight.inc Prepare Drush for preflight.
drush_preflight includes/preflight.inc During the initialization of Drush, this is the first step where we load our configuration and commandfiles, and select the site we are going to operate on; however, we take no irreversible actions (e.g. site bootstrapping). This allows commands that…
drush_preflight_root includes/preflight.inc If --root is provided, set context.
drush_preflight_site includes/preflight.inc
_drush_preflight_global_options includes/preflight.inc
_drush_preflight_base_environment includes/preflight.inc Sets up basic environment that controls where Drush looks for files on a system-wide basis. Important to call for "early" functions that need to work with unit tests.
_drush_preflight_columns includes/preflight.inc
_drush_preflight_alias_path includes/preflight.inc
_drush_preflight_root_uri includes/preflight.inc
_drush_preflight_uri includes/preflight.inc If --uri is provided, set context.
_drush_find_commandfiles_drush includes/preflight.inc
drush_preflight_command_dispatch includes/preflight.inc Handle any command preprocessing that may need to be done, including potentially redispatching the command immediately (e.g. for remote commands).
drush_preflight_tilde_expansion includes/preflight.inc Look for instances of arguments or parameters that start with "~/". Replace these with "$HOME/".
drush_postflight includes/preflight.inc We set this context to let the shutdown function know we reached the end of drush_main().
drush_shutdown includes/preflight.inc Shutdown function for use while Drush and Drupal are bootstrapping and to return any registered errors.
drush_coverage_shutdown includes/preflight.inc Shutdown function to save code coverage data.
drush_return_status includes/preflight.inc
drush_sitealias_check_arg_and_site_set includes/sitealias.inc Check to see if the user specified an alias in an arguement, or via site-set. If so, return the name of the alias.
drush_sitealias_check_arg includes/sitealias.inc Check to see if the first command-line arg or the -l option is a site alias; if it is, copy its record values to the 'alias' context.
drush_sitealias_check_site_env includes/sitealias.inc
drush_sitealias_create_self_alias includes/sitealias.inc Check to see if a '@self' record was created during bootstrap. If not, make one now.
drush_sitealias_simplify_names includes/sitealias.inc Given a list of alias records, shorten the name used if possible
drush_sitealias_resolve_sitespecs includes/sitealias.inc Given an array of site specifications, resolve each one in turn and return an array of alias records. If you only want a single record, it is preferable to simply call drush_sitealias_get_record directly.
drush_sitealias_valid_alias_format includes/sitealias.inc Returns TRUE if $alias is a valid format for an alias name.
drush_sitealias_get_record includes/sitealias.inc Get a site alias record given an alias name or site specification.
_drush_sitealias_get_record includes/sitealias.inc This is a continuation of drush_sitealias_get_record, above. It is not intended to be called directly.
drush_sitealias_add_to_alias_path includes/sitealias.inc Add a path to the array of paths where alias files are searched for.
drush_sitealias_alias_path includes/sitealias.inc Return the array of paths where alias files are searched for.
drush_sitealias_alias_base_directory includes/sitealias.inc If there is a directory 'site-aliases' in the specified search location, then search ONLY in that directory for aliases. Otherwise, search anywhere inside the specified directory for aliases.
drush_sitealias_local_site_path includes/sitealias.inc Return the full path to the site directory of the given alias record.
_drush_sitealias_load_alias includes/sitealias.inc Check and see if an alias definition for $alias is available. If it is, load it into the list of aliases cached in the 'site-aliases' context.
drush_sitealias_load_all includes/sitealias.inc Load every alias file that can be found anywhere in the alias search path.
_drush_sitealias_find_and_load_all_aliases includes/sitealias.inc Worker function called by _drush_sitealias_load_alias and drush_sitealias_load_all. Traverses the alias search path and finds the specified alias record.
_drush_sitealias_find_alias_files includes/sitealias.inc Function to find all alias files that might contain aliases that match the requested alias name.

Pages