From 12e80ef0c476bace666cd76a1d71c02d1f24394d Mon Sep 17 00:00:00 2001 From: Jason MacWilliams Date: Wed, 6 Jun 2012 11:52:36 -0300 Subject: [PATCH] updated docs for hook_object_details_get_available_xslts --- ObjectDetails.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ObjectDetails.inc b/ObjectDetails.inc index b7b04c8e..9ee2d88b 100644 --- a/ObjectDetails.inc +++ b/ObjectDetails.inc @@ -213,6 +213,12 @@ function fedora_repository_object_details_XSLT_config_submit($form, &$form_state /** * Base function to supply the available xslt files. + * + * Modules implementing this hook need to return an array describing where the + * XSLT is. The array key is the path to the XSLT (paths start with sites/) and + * the value in the array is the display name. In the simplest form you can use + * file_scan_directory like we do here - this puts the filename as the display + * name and will automatically detect new files as they are added. */ function fedora_repository_object_details_get_available_xslts() { $folder = drupal_get_path("module", "fedora_repository") ."/object_details_xslts/";