Updated: Comment #N

Problem/Motivation

Currently this is hard coded to sites/all/libraries.

function graphapi_loader() {
  $loader = drupal_classloader();
  /*
   * TODO: this is somehow necessary but what if other modules
   *       need this library too?
   */
  $loader->add('Fhaculty', DRUPAL_ROOT . '/sites/all/libraries/graph/lib');
  $loader->add('Fhaculty', DRUPAL_ROOT . '/sites/all/libraries/graph-uml/src', TRUE);
}

hook_library_info is not to the rescue.

Proposed resolution

- Make path configurable at the very least. That will cause WSOD

Remaining tasks

- Check with #2083547: PSR-4: Putting it all together

User interface changes

API changes

Comments

clemens.tolboom’s picture

clemens.tolboom’s picture