function _scald_rendered_to_sas_callback in Scald: Media Management made easy 7
Callback for the scald_rendered_to_sas.
Parameters
array $matches: Matches found by preg_match using SCALD_RENDERED_MATCH_PATTERN.
Return value
string Scald SAS representation.
1 string reference to '_scald_rendered_to_sas_callback'
- scald_rendered_to_sas in ./
scald.module - Process a text string and replace rendered atoms with their SAS.
File
- ./
scald.module, line 980 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function _scald_rendered_to_sas_callback($matches) {
return '[scald=' . $matches[1] . (!empty($matches[2]) ? ':' . $matches[2] : '') . (!empty($matches[3]) ? ' ' . $matches[3] : '') . ']';
}