You are here

function media_ctools_plugin_api in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.module \media_ctools_plugin_api()
  2. 7.2 media.module \media_ctools_plugin_api()
  3. 7.3 media.module \media_ctools_plugin_api()

Implements hook_ctools_plugin_api().

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

File

./media.module, line 1139
Media API

Code

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