function tinybrowser_id_match in TinyBrowser 7
Check if specified element ID and current element ID matches
For example, we handle these case as a match user specified ID: edit-body current element ID: edit-body-und-0-summary or edit-body-und-0-value
1 call to tinybrowser_id_match()
- tinybrowser_textarea in ./
tinybrowser.module - Inline image/link insertion to textareas.
File
- ./
tinybrowser.module, line 1146
Code
function tinybrowser_id_match($ids, $target_id) {
foreach ($ids as $id => $value) {
if (preg_match('/^' . $id . '/i', $target_id)) {
return TRUE;
}
}
return FALSE;
}