You are here

function custompage_ctools_plugin_api in Custom Page 7

Same name and namespace in other branches
  1. 6 custompage.module \custompage_ctools_plugin_api()

Make module compatible with context 3 implement hook_ctools_plugin_api().

File

./custompage.module, line 270
Custom Page Module

Code

function custompage_ctools_plugin_api($module, $api) {

  // site using context 2, but using ctools
  if (function_exists('context_set_by_condition')) {
    return;
  }
  if ($module == 'context' && $api == 'plugins') {
    return array(
      'version' => 3,
    );
  }
}