function variable_complete_variables

8.0.x variable.drush.inc variable_complete_variables()
6.x variable.drush.inc variable_complete_variables()
7.x variable.drush.inc variable_complete_variables()
5.x variable.drush.inc variable_complete_variables()
master variable.drush.inc variable_complete_variables()

List variables for completion.

Return value

Array of available variables.

3 calls to variable_complete_variables()
variable_variable_delete_complete in commands/core/variable.drush.inc
Command argument complete callback.
variable_variable_get_complete in commands/core/variable.drush.inc
Command argument complete callback.
variable_variable_set_complete in commands/core/variable.drush.inc
Command argument complete callback.

File

commands/core/variable.drush.inc, line 112

Code

function variable_complete_variables() {
  if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_FULL)) {
    global $conf;
    return array('values' => array_keys($conf));
  }
}