You are here

function media_gallery_ctools_plugin_api in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 media_gallery.module \media_gallery_ctools_plugin_api()

Implements hook_ctools_plugin_api().

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

File

./media_gallery.module, line 1750

Code

function media_gallery_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],
    );
  }
}