function footnotes_views_handler_field_body_content::render_name in Footnotes 7.3
Same name and namespace in other branches
- 6.2 footnotes_views_handler_field_body_content.inc \footnotes_views_handler_field_body_content::render_name()
- 7.2 footnotes_views_handler_field_body_content.inc \footnotes_views_handler_field_body_content::render_name()
Function render_name().
1 call to footnotes_views_handler_field_body_content::render_name()
File
- ./
footnotes_views_handler_field_body_content.inc, line 20 - Views handler for the body content.
Class
- footnotes_views_handler_field_body_content
- @file Views handler for the body content.
Code
function render_name($data, $values) {
$start = strpos($data, '<ul class="footnotes">');
// By default footnotes are at the end, but they could be anywhere really.
if ($start !== FALSE) {
$result = substr($data, 0, $start);
$data = $result;
}
return $data;
}