You are here

service_container_test_ctools.module in Service Container 7.2

File

tests/modules/service_container_test_ctools/service_container_test_ctools.module
View source
<?php

/**
 * Implements hook_ctools_plugin_directory().
 */
function service_container_test_ctools_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'service_container') {
    return 'src/ServiceContainer/' . $plugin_type;
  }
  return 'src/plugins/' . str_replace("\\", DIRECTORY_SEPARATOR, $plugin_type);
}

/**
 * Implements hook_ctools_plugin_type().
 */
function service_container_test_ctools_ctools_plugin_type() {
  return array(
    'ServiceContainerTestCtoolsPlugin' => array(
      'use hooks' => FALSE,
      'extension' => 'php',
    ),
    'yolo' => array(
      'use hooks' => FALSE,
      'extension' => 'php',
    ),
  );
}