Process output text.

  1. 6.x drush/includes/output.inc outputfunctions
  2. 4.x drush/includes/drush.inc outputfunctions
  3. 5.x drush/includes/output.inc outputfunctions
  4. 7.x drush/includes/output.inc outputfunctions

Functions

Namesort descending Location Description
drush_format drush/includes/output.inc Prepares a variable for printing. Loads the requested output formatter and uses it to process the provided input.
drush_format_table drush/includes/output.inc Format a table of data.
drush_hide_empty_fields drush/includes/output.inc Hide any fields that are empty
drush_html_to_text drush/includes/output.inc Convert html to readable text. Compatible API to drupal_html_to_text, but less functional. Caller might prefer to call drupal_html_to_text if there is a bootstrapped Drupal site available.
drush_json_decode drush/includes/output.inc Converts an HTML-safe JSON string into its PHP equivalent.
drush_json_encode drush/includes/output.inc Converts a PHP variable into its Javascript equivalent.
drush_key_value_to_array_table drush/includes/output.inc Convert an associative array of key : value pairs into a table suitable for processing by drush_print_table.
drush_lookup_field_by_path drush/includes/output.inc Return a specific item inside an array, as identified by the provided path.
drush_output_get_selected_field drush/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_print drush/includes/output.inc Prints a message with optional indentation. In general, drush_log($message, 'ok') is often a better choice than this function. That gets your confirmation message (for example) into the logs for this drush request. Consider that drush…
drush_print_file drush/includes/output.inc Print the contents of a file.
drush_print_format drush/includes/output.inc Format some data and print it out. Respect --format option.
drush_print_pipe drush/includes/output.inc Stores a message which is printed during drush_shutdown() if in compact mode.
drush_print_prompt drush/includes/output.inc Print a prompt -- that is, a message with no trailing newline.
drush_print_r drush/includes/output.inc Prints an array or string.
drush_print_table drush/includes/output.inc Print a formatted table.
drush_rows_of_key_value_to_array_table drush/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_select_fields drush/includes/output.inc Select the fields that should be used.
drush_select_output_fields drush/includes/output.inc Select the fields from the input array that should be output.
drush_table_column_autowidth drush/includes/output.inc Determine the best fit for column widths.
drush_var_export drush/includes/output.inc Drupal-friendly var_export(). Taken from utility.inc in Drupal 8.
dt drush/includes/output.inc Rudimentary replacement for Drupal API t() function.
_drush_format_table drush/includes/output.inc

File

drush/includes/output.inc, line 3