|
|
@ -630,7 +630,7 @@ function islandora_check_object_status(AbstractObject $object_definition) { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $variable_id |
|
|
|
* @param string $variable_id |
|
|
|
* The ID of the Drupal variable to save the viewer settings in. |
|
|
|
* The ID of the Drupal variable to save the viewer settings in. |
|
|
|
* @param string $mimetype |
|
|
|
* @param string|array $mimetype |
|
|
|
* The table will be populated with viewers supporting this mimetype. |
|
|
|
* The table will be populated with viewers supporting this mimetype. |
|
|
|
* @param string $model |
|
|
|
* @param string $model |
|
|
|
* The table will be populated with viewers supporting this content model. |
|
|
|
* The table will be populated with viewers supporting this content model. |
|
|
@ -710,7 +710,7 @@ function islandora_viewers_form($variable_id = NULL, $mimetype = NULL, $model = |
|
|
|
* given, than any viewer that supports either the give $mimetype or $model will |
|
|
|
* given, than any viewer that supports either the give $mimetype or $model will |
|
|
|
* be listed. |
|
|
|
* be listed. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array $mimetype |
|
|
|
* @param array|string $mimetype |
|
|
|
* List of mimetypes that the viewer supports. |
|
|
|
* List of mimetypes that the viewer supports. |
|
|
|
* @param string $content_model |
|
|
|
* @param string $content_model |
|
|
|
* Specify a content model to return only viewers that support the content |
|
|
|
* Specify a content model to return only viewers that support the content |
|
|
@ -719,7 +719,7 @@ function islandora_viewers_form($variable_id = NULL, $mimetype = NULL, $model = |
|
|
|
* @return array |
|
|
|
* @return array |
|
|
|
* Viewer definitions, or FALSE if none are found. |
|
|
|
* Viewer definitions, or FALSE if none are found. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_get_viewers(array $mimetype = array(), $content_model = NULL) { |
|
|
|
function islandora_get_viewers($mimetype = array(), $content_model = NULL) { |
|
|
|
$viewers = array(); |
|
|
|
$viewers = array(); |
|
|
|
$defined_viewers = module_invoke_all('islandora_viewer_info'); |
|
|
|
$defined_viewers = module_invoke_all('islandora_viewer_info'); |
|
|
|
|
|
|
|
|
|
|
|