function drush_variable_name_adjust

8.0.x variable.drush.inc drush_variable_name_adjust($arg)
6.x variable.drush.inc drush_variable_name_adjust($arg)
7.x variable.drush.inc drush_variable_name_adjust($arg)
5.x variable.drush.inc drush_variable_name_adjust($arg)
master variable.drush.inc drush_variable_name_adjust($arg)
3 calls to drush_variable_name_adjust()
drush_variable_delete in commands/core/variable.drush.inc
Command callback. Delete a variable.
drush_variable_get in commands/core/variable.drush.inc
Command callback. List your site's variables.
drush_variable_set in commands/core/variable.drush.inc
Command callback. Set a variable.

File

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

Code

function drush_variable_name_adjust($arg) {
  if (($arg == 'maintenance_mode') && (drush_drupal_major_version() < 7)) {
    $arg = 'site_offline';
  }
  if (($arg == 'site_offline') && (drush_drupal_major_version() >= 7)) {
    $arg = 'maintenance_mode';
  }
  return $arg;
}