You are here

function assets_filter_get_matches in Asset 7

Helper function to keep the initial regexp only here, returns a set of matches per asset tag.

4 calls to assets_filter_get_matches()
assets_cut_filter_process in includes/asset.filters.inc
Filter callback for remove assets filter.
assets_get_content in includes/asset.admin.inc
Page callback to get html for asset preview in wysiwyg.
assets_override_form in includes/asset.admin.inc
Page callback for asset override form in wysiwyg.
asset_get_full_content in includes/asset.admin.inc
Page callback, return html of full asset.

File

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

Code

function assets_filter_get_matches($text) {
  $matches = array();
  preg_match_all('/\\[\\[asset:([_a-zA-Z0-9]+):([0-9]+)\\s\\{((\\n|.)*?)\\}\\]\\]/s', $text, $matches, PREG_SET_ORDER);
  return $matches;
}