function mee_extract_copyrights in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 mee/mee.module \mee_extract_copyrights()
Extract all copyright informations from a string.
1 call to mee_extract_copyrights()
- _mee_process_item_value in modules/
fields/ mee/ mee.module - Extracts sids and copyright from $item. Updates $item if necessary.
File
- modules/
fields/ mee/ mee.module, line 864 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module.
Code
function mee_extract_copyrights($string) {
$copyrights = array();
if (preg_match_all(MEE_RENDERED_COPYRIGHT_PATTERN, $string, $matches)) {
foreach ($matches[1] as $key => $sid) {
$copyrights[$sid] = $matches[2][$key];
}
}
return $copyrights;
}