You are here

function encrypt_ctools_plugin_type in Encrypt 7.2

Same name and namespace in other branches
  1. 7.3 encrypt.module \encrypt_ctools_plugin_type()

Implements hook_ctools_plugin_type().

Tell ctools about our plugin types.

File

./encrypt.module, line 130
Main Encrypt Drupal File.

Code

function encrypt_ctools_plugin_type() {
  $plugins = array();
  $plugins['encryption_methods'] = array(
    'cache' => TRUE,
    'cache table' => 'cache',
    'process' => '_encrypt_plugin_process',
    'defaults' => array(
      'title' => '',
      'description' => '',
      'encrypt callback' => NULL,
      'dependency callback' => NULL,
      'dependency errors' => NULL,
      'settings form' => NULL,
      'submit callback' => NULL,
      'deprecated' => FALSE,
    ),
  );
  $plugins['key_providers'] = array(
    'cache' => TRUE,
    'cache table' => 'cache',
    'process' => '_encrypt_plugin_process',
    'defaults' => array(
      'title' => '',
      'description' => '',
      'key callback' => NULL,
      'dependency callback' => NULL,
      'dependency errors' => NULL,
      'settings form' => NULL,
      'static key' => TRUE,
      'submit callback' => NULL,
      'deprecated' => FALSE,
    ),
  );
  return $plugins;
}