Browse Source

commented the hook alter for islandora_solr_search_rss_item_alter

pull/343/head
phil 13 years ago
parent
commit
155ca60289
  1. 25
      fedora_repository.api.php

25
fedora_repository.api.php

@ -135,3 +135,28 @@ function hook_fedora_repository_can_ingest($collection_pid) {
function hook_fedora_repository_check_perm($op, $pid = NULL, $as_user = NULL) { function hook_fedora_repository_check_perm($op, $pid = NULL, $as_user = NULL) {
return NULL; return NULL;
} }
/**
* This hook allows modules to edit an rss_item.
* Override rss Item.
* (from islandora_solr_search/islandora_solr_config
*
* Somtimes you might want to alter how an rss item is displayed.
*
* @param rssItem $item
* The rssItem object
*
* @param $doc
* The solr results document
*
*/
function hook_islandora_solr_search_rss_item_alter($item, $doc) {
$item['title'] = $doc['PID'];
$item['description'] = 'this is the new rss item description';
}

Loading…
Cancel
Save