function _responsive_table_filter_process_table in Responsive Table Filter 7
PREG replace callback.
1 string reference to '_responsive_table_filter_process_table'
- _responsive_table_filter_process in ./
responsive_table_filter.module - Implements hook_filter_FILTER_process().
File
- ./
responsive_table_filter.module, line 35 - Text filter for wrapping <table> tags in a <figure> tag.
Code
function _responsive_table_filter_process_table(array $matches) {
$attributes = $matches[1];
$text = $matches[2];
$text = '<figure class="responsive-figure-table"><table' . $attributes . '>' . $text . '</table></figure>';
return $text;
}