You are here

mobile_detect_ctools.module in Mobile Detect 7

Hooks implementations for the mobile_detect_ctools module.

File

mobile_detect_ctools/mobile_detect_ctools.module
View source
<?php

/**
 * @file
 * Hooks implementations for the mobile_detect_ctools module.
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function mobile_detect_ctools_ctools_plugin_api($module, $api) {
  if ($module == 'mobile_detect' && $api == 'mobile_detect') {
    return array(
      'version' => 3,
    );
  }
}

/**
 * Implements hook_ctools_plugin_directory().
 */
function mobile_detect_ctools_ctools_plugin_directory($module, $plugin) {
  if ($plugin == 'access') {
    return 'plugins/' . $plugin;
  }
}