You are here

function libraries_admin_get_dependencies in Libraries API 7.2

Returns the library's dependencies, if any.

Parameters

array $library: A library information array.

Return value

string The dependencies.

1 call to libraries_admin_get_dependencies()
libraries_admin_overview in ./libraries.admin.inc
Form generation callback for the libraries overview table.

File

./libraries.admin.inc, line 566
Provides administrative page and form callbacks for Libraries module.

Code

function libraries_admin_get_dependencies($library) {
  $dependencies = array();
  foreach ($library['dependencies'] as $dependency_name) {
    if ($dependency = libraries_info($dependency_name)) {
      $dependencies[] = $dependency['name'];
    }
    else {
      $dependencies[] = $dependency_name;
    }
  }
  return implode(', ', $dependencies);
}