Skip to content
Browse files

Merge pull request #859 from triplei/PageIndexEvent

Add on_page_body_index event
  • Loading branch information...
2 parents 79f9441 + 64c4918 commit 58d614b342d76aae3e64cc60c9cf57b9a94bbb3f @aembler aembler committed Feb 14, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 web/concrete/core/libraries/indexed_search.php
View
6 web/concrete/core/libraries/indexed_search.php
@@ -98,6 +98,12 @@ public function getBodyContentFromPage($c) {
}
}
+ $returned_text = Events::fire('on_page_body_index', $c, $text);
+
+ if ( $returned_text !== null && $returned_text !== false){
+ $text = $returned_text;
+ }
+
return $text;
}

0 comments on commit 58d614b

Please sign in to comment.
Something went wrong with that request. Please try again.