You are here

function emimage_custom_url_image_title in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emimage/providers/custom_url.inc \emimage_custom_url_image_title()

This function is an implementation of the emimage_PROVIDER_image_title()

Parameters

$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, return an empty string.

1 call to emimage_custom_url_image_title()
emimage_custom_url_data in contrib/emimage/providers/custom_url.inc
This function will get additional information of the image source input by the end user. It will also use a helper function to validate the source of the image.

File

contrib/emimage/providers/custom_url.inc, line 134

Code

function emimage_custom_url_image_title($url, $data) {
  if (isset($data['title'])) {
    return $data['title'];
  }
  return _emimage_custom_url_scrape_image_title($url);
}