public function source($dir)
    {
        // Check if unbuilt Drupal
        foreach ($this->getMakefiles($dir) as $file) {
            $f = fopen($file, 'r');
            $peek = fread($f, 1000);
            fclose($f);
            if (strpos($peek, 'api') !== FALSE && strpos($peek, 'core') !== FALSE) {
                return true;
            }
        }

        return false;
    }
public function source($dir)
    {
        // Check if unbuilt Drupal
        foreach ($this->getMakefiles($dir) as $file) {
            $f = fopen($file, 'r');
            $peek = fread($f, 1000);
            fclose($f);
            if (strpos($peek, 'api') !== FALSE && strpos($peek, 'core') !== FALSE) {
                return true;
            }
        }

        return false;
    }
public function source ( $ dir ) { // Check if unbuilt Drupal foreach ( $ this -> getMakefiles ( $ dir ) as $ file ) { $ f = fopen ( $ file , 'r' ) ; $ peek = fread ( $ f , 1000 ) ; fclose ( $ f ) ; if ( strpos ( $ peek , 'api' ) !== FALSE && strpos ( $ peek , 'core' ) !== FALSE ) { return true ; } } return false ; }
Checks if Drupal project, but source.

@param $dir

@return bool
Checks if Drupal project but source .