function scald_youtube_already_imported in Scald YouTube 7
Checks if a video has already been imported, based on its video ID.
Parameters
string $id: The video identifier.
Return value
mixed FALSE if the video was never imported, the scald identifier of the video otherwise.
2 calls to scald_youtube_already_imported()
- scald_youtube_register in ./
scald_youtube.module - Scald_youtube_register.
- scald_youtube_validate_id in ./
scald_youtube.module - Form element validation handler for YouTube identifier.
File
- ./
scald_youtube.module, line 683 - Defines a YouTube provider for Scald.
Code
function scald_youtube_already_imported($id) {
$query = array(
'provider' => 'scald_youtube',
'base_id' => $id,
);
return scald_search($query, FALSE, TRUE);
}