You are here

function _drupalchat_autodiscover_path in DrupalChat 6.2

Same name and namespace in other branches
  1. 6 includes/drupalchat.admin.inc \_drupalchat_autodiscover_path()
  2. 7.2 drupalchat.module \_drupalchat_autodiscover_path()
  3. 7 drupalchat.module \_drupalchat_autodiscover_path()
1 call to _drupalchat_autodiscover_path()
drupalchat_library_path in ./drupalchat.module

File

./drupalchat.admin.inc, line 346
Administrative functions to configure DrupalChat.

Code

function _drupalchat_autodiscover_path($match, $filename) {
  $path = '';
  $files = drupal_system_listing($match, 'libraries', 'basename', 0);
  if (isset($files[$filename])) {
    $path = dirname($files[$filename]->filename);
  }
  return $path;
}