You are here

protected function EntityShareMediasScaldAbstract::getScaldAtomFromProvider in Entity Share 7

Get the scald atom from provider and base id.

Parameters

string $provider: The scald provider.

string $base_id: The base id of the scald atom.

Return value

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

1 call to EntityShareMediasScaldAbstract::getScaldAtomFromProvider()
EntityShareMediasScaldAbstract::getScaldIdFromUuid in modules/entity_share_medias/modules/entity_share_medias_scald/includes/entity_share_medias_scald.abstract.inc
Get a scald Id from a UUID.

File

modules/entity_share_medias/modules/entity_share_medias_scald/includes/entity_share_medias_scald.abstract.inc, line 103
Class for handling scald Medias in RTE.

Class

EntityShareMediasScaldAbstract
Abstract Class to manage scald atoms.

Code

protected function getScaldAtomFromProvider($provider, $base_id) {
  $query = array(
    'provider' => $provider,
    'base_id' => $base_id,
  );
  return scald_search($query, FALSE, TRUE);
}