You are here

function assets_cut_filter_process in Asset 7

Filter callback for remove assets filter.

1 string reference to 'assets_cut_filter_process'
asset_filter_info in ./asset.module
Implements hook_filter_info().

File

includes/asset.filters.inc, line 72
Assets Input filters logic.

Code

function assets_cut_filter_process($text) {
  $matches = assets_filter_get_matches($text);
  $tags = array();
  foreach ($matches as $match) {
    $tags[] = $match[0];
  }
  if (count($tags)) {
    $text = str_replace($tags, '', $text);
  }
  return $text;
}