You are here

function oembedcore_provider_save in oEmbed 6.0

Write a provider to the database.

File

./oembedcore.module, line 504
Core functionality for oEmbed

Code

function oembedcore_provider_save(&$provider) {
  $update = isset($provider->pid) ? array(
    'pid',
  ) : array();
  drupal_write_record('oembedcore_provider', $provider, $update);
  cache_clear_all('oembedcore:providers', 'cache');
  return $preset;
}