You are here

function scald_included in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 scald.module \scald_included()

Determine atoms (expressed as SAS) embedded in a string.

Parameters

$string: The string to search for SAS

Return value

An array of SIDs which are included in the string in SAS form.

3 calls to scald_included()
mee_field in mee/mee.module
Implementation of hook_field().
scald_composite_nodeapi in scald_composite/scald_composite.module
Implementation of hook_nodeapi().
theme_mee_formatter_default in mee/mee.module

File

./scald.module, line 1904

Code

function scald_included($string) {
  $matches = array();
  if (!preg_match_all(SCALD_SAS_MATCH_PATTERN, $string, $matches)) {
    return array();
  }
  return $matches[1];
}