function brightcove_parse_id in Brightcove Video Connect 6
Same name and namespace in other branches
- 6.2 brightcove.module \brightcove_parse_id()
- 7.7 brightcove.module \brightcove_parse_id()
- 7.2 brightcove.module \brightcove_parse_id()
- 7.3 brightcove.module \brightcove_parse_id()
- 7.4 brightcove.module \brightcove_parse_id()
- 7.5 brightcove.module \brightcove_parse_id()
- 7.6 brightcove.module \brightcove_parse_id()
Parse a field value in form of "title [id:123]" and return 123
Parameters
$id: Video ID in form of "title [id:123]".
Return value
Int value of the ID.
2 calls to brightcove_parse_id()
- brightcove_cck_browser_validate in brightcove_cck/
brightcove_cck.module - Validate callback for the field.
- brightcove_mm_complete_video in ./
brightcove.media_mover.inc - Complete operation for Media Mover - will attach a video to CCK field.
File
- ./
brightcove.module, line 382 - Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.
Code
function brightcove_parse_id($id) {
preg_match('/\\[id:([^\\[]*)\\]$/', $id, $matches);
return $matches[1];
}