You are here

function resp_img_ctools_plugin_api in Responsive images and styles 7.2

Same name and namespace in other branches
  1. 7 resp_img.module \resp_img_ctools_plugin_api()

Implements hook_ctools_plugin_api().

Lets CTools know which plugin APIs are implemented by resp_img module.

File

./resp_img.module, line 216

Code

function resp_img_ctools_plugin_api($owner, $api) {
  static $api_versions = array(
    'file_entity' => array(
      'file_default_displays' => 1,
    ),
  );
  if (isset($api_versions[$owner][$api])) {
    return array(
      'version' => $api_versions[$owner][$api],
    );
  }
}