You are here

ctools.inc in Share Buttons, Related Posts, Content Analytics - Shareaholic 7

Same filename and directory in other branches
  1. 7.2 includes/ctools.inc

CTools module integration.

File

includes/ctools.inc
View source
<?php

/**
 * @file
 * CTools module integration.
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function sexybookmarks_ctools_plugin_api() {
  list($module, $api) = func_get_args();
  if ($module == 'sexybookmarks' && $api == 'default_sexybookmarks_profiles') {
    return array(
      'version' => 2,
    );
  }
  if ($module == 'boxes' && $api == 'box') {
    return array(
      'version' => 1,
    );
  }
}

/**
 * Implements hook_ctools_plugin_directory().
 */
function sexybookmarks_ctools_plugin_directory($module, $plugin) {
  if ($module == 'ctools' && !empty($plugin)) {
    return "plugins/{$plugin}";
  }
}