documentation

This commit is contained in:
John Bintz 2009-11-07 16:38:22 -05:00
parent 6b0953f91b
commit 6e6f6f71c9
1 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ class ComicPress {
return false;
}
/**
* Search a path for directories named after the slugs provided.
* @param array $categories A list of category slugs going from child -> parent -> root.
* @param string $path The path to search.
* @return array All matching paths.
*/
function category_search($categories, $path) {
$path = trailingslashit($path);
$all_categories = array_reverse($categories);