function footnotes_views_handler_field_body_footnotes::render_name in Footnotes 7.3
Same name and namespace in other branches
- 6.2 footnotes_views_handler_field_body_footnotes.inc \footnotes_views_handler_field_body_footnotes::render_name()
- 7.2 footnotes_views_handler_field_body_footnotes.inc \footnotes_views_handler_field_body_footnotes::render_name()
Function render_name().
1 call to footnotes_views_handler_field_body_footnotes::render_name()
File
- ./
footnotes_views_handler_field_body_footnotes.inc, line 17 - Views handler for the body footnotes.
Class
- footnotes_views_handler_field_body_footnotes
- @file Views handler for the body footnotes.
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) {
$data = substr($data, $start);
}
else {
// There are no footnotes.
$data = '';
}
return $data;
}