You are here

function scald_dailymotion_already_imported in Scald: Media Management made easy 6

Checks if a video has already been imported, based on its video id.

Parameters

$id: The video identifier

Return value

mixed FALSE if the video was never imported, the scald identifier of the video otherwise.

1 call to scald_dailymotion_already_imported()
scald_dailymotion_register in scald_dailymotion/scald_dailymotion.module
Creates an atom based on a DailyMotion video id or an object containing the video informations..

File

scald_dailymotion/scald_dailymotion.module, line 246
Defines a DailyMotion provider for Scald.

Code

function scald_dailymotion_already_imported($id) {
  $query = array(
    'provider' => 'scald_dailymotion',
    'base_id' => $id,
  );
  return scald_search($query, FALSE, TRUE);
}