You are here

function google_appliance_valid_drupal_root in Google Search Appliance 7

Same name and namespace in other branches
  1. 8 src/Service/Click.php \google_appliance_valid_drupal_root()

Checks whether given path qualifies as a Drupal root.

Parameters

$path: Path to check.

Return value

TRUE if given path seems to be a Drupal root, otherwise FALSE.

See also

drush_valid_drupal_root()

1 call to google_appliance_valid_drupal_root()
google_appliance_locate_root in ./google_appliance.callback.click.php
Exhaustive depth-first search to try and locate the Drupal root directory.

File

./google_appliance.callback.click.php, line 43
The callback for the Google Appliance module's /click service.

Code

function google_appliance_valid_drupal_root($path) {
  return !empty($path) && is_dir($path) && file_exists($path . '/includes/bootstrap.inc');
}