You are here

function scald_included in Scald: Media Management made easy 7

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

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

Parameters

string $string: The string to search for SAS.

Return value

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

1 call to scald_included()
_mee_process_item_value in modules/fields/mee/mee.module
Extracts sids and copyright from $item. Updates $item if necessary.

File

./scald.module, line 911
The Scald Core, which handles all Scald Registries and dispatch.

Code

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