Skip to content

Commit

Permalink
Merge pull request #859 from triplei/PageIndexEvent
Browse files Browse the repository at this point in the history
Add on_page_body_index event
  • Loading branch information
aembler committed Feb 14, 2013
2 parents 79f9441 + 64c4918 commit 58d614b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/concrete/core/libraries/indexed_search.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 58d614b

Please sign in to comment.