public static function getPackages() {
    $path = drupal_get_path('profile', 'openy');
    $packages = Yaml::decode(file_get_contents($path . '/openy.packages.yml'));
    // Demo content package should be hidden.
    if (isset($packages['demo'])) {
      unset($packages['demo']);
    }

    return $packages;
  }
public static function getPackages() {
    $path = drupal_get_path('profile', 'openy');
    $packages = Yaml::decode(file_get_contents($path . '/openy.packages.yml'));
    // Demo content package should be hidden.
    if (isset($packages['demo'])) {
      unset($packages['demo']);
    }

    return $packages;
  }
public static function getPackages ( ) { $ path = drupal_get_path ( 'profile' , 'openy' ) ; $ packages = Yaml :: decode ( file_get_contents ( $ path . '/openy.packages.yml' ) ) ; // Demo content package should be hidden. if ( isset ( $ packages [ 'demo' ] ) ) { unset ( $ packages [ 'demo' ] ) ; } return $ packages ; }
Loads available packages.

@return mixed
Loads available packages .