function drush_sitealias_site_get

8.0.x drush_sitealias_site_get()
6.x drush_sitealias_site_get()
7.x drush_sitealias_site_get()
5.x drush_sitealias_site_get()
master drush_sitealias_site_get()

Read the tmp file where the persistent site setting is stored.

Return value

string A valid site specification.

2 calls to drush_sitealias_site_get()
drush_sitealias_check_arg_and_site_set in includes/
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_site_env in includes/


includes/, line 2142
The site alias API.


function drush_sitealias_site_get() {
  if (($filename = drush_sitealias_get_envar_filename()) && file_exists($filename)) {
    $site = file_get_contents($filename);
    return $site;
  else {
    return FALSE;