Miscellaneous functions
[Helper functions]


Functions

 _multi_current_version ()
 _multi_check_site ($site)
 _multi_check_db_url ($site)

Detailed Description

Miscellaneous functions.

Function Documentation

_multi_check_db_url ( site  ) 

Check the database url in settings.php of the supplied site by trying to establish a connection

Parameters:
$site The site to check
Returns:
TRUE if the connection was established succesfull else FALSE

Todo:
more tests

Todo:
check mysqli_connect(), not tested

Todo:
check pg_connect(), not tested

Definition at line 972 of file multi.inc.

_multi_check_site ( site  ) 

Check if the supplied site exists within the installation

Parameters:
$site 
Returns:
boolean Return TRUE if the site exists within the installation else FALSE

Definition at line 955 of file multi.inc.

References _multi_scan_sites().

_multi_current_version (  ) 

Return the current drupal version in form of 'drupal-'${MAJOR}.${MINOR}

Returns:
string Drupals current version

Definition at line 945 of file multi.inc.

Referenced by _multi_nagios_root(), _multi_previous_installation(), _multi_previous_installations(), and drush_multi_drupalupdate_validate().


Generated on Wed Dec 29 13:43:21 2010 for drush_multi by  doxygen 1.5.8