the translated name of the provider * 'url' => the url to the main page for the provider * 'settings_description' => a description of the provider that will be posted in the admin settings form * 'supported_features' => an array of rows describing the state of certain supported features by the provider. * These will be rendered in a table, with the columns being 'Feature', 'Supported', 'Notes'. */ function emimage_local_info() { $name = t('Local'); return array( 'provider' => 'local', 'name' => t('Local'), 'url' => EMIMAGE_LOCAL_MAIN_URL, 'settings_description' => t('These settings specifically affect images displayed from your local site.'), 'supported_features' => array(), ); } function emimage_local_data($field, $item) { $data = array(); $url = $item['embed']; $data = array( 'image' => $url, 'title' => '', ); return $data; } function emimage_local_extract($embed = '') { return $embed; } /** * hook emimage_PROVIDER_embedded_link($code) * returns a link to view the content at the provider's site * @param $code * the string containing the content to watch * @return * a string containing the URL to view the image at the original provider's site */ function emimage_local_embedded_link($code, $data) { return $data['image']; } /** * implement emimage_PROVIDER_image_url * * @param $code * the code of the image * @param $data * any stored data for the image, which may already have the title * @return * the url directly to the image to display */ function emimage_local_image_url($code, $data) { return $code; } /** * implement emimage_PROVIDER_image_title * * @param $code * the code of the image * @param $data * any stored data for the image, which may already have the title * @return * the title as the 3rd party provider knows it, if accessible to us. otherwise, '' */ function emimage_local_image_title($code, $data) { return ''; }