You are here

function google_appliance_valid_drupal_root in Google Search Appliance 8

Same name and namespace in other branches
  1. 7 google_appliance.callback.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 src/Service/Click.php
Exhaustive depth-first search to try and locate the Drupal root directory.

File

src/Service/Click.php, line 60
Created by PhpStorm. User: mhavelant Date: 2017.05.23. Time: 18:01.

Code

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