function key_ctools_plugin_type in Key 7.3
Same name and namespace in other branches
- 7 key.module \key_ctools_plugin_type()
- 7.2 key.module \key_ctools_plugin_type()
Implements hook_ctools_plugin_type().
Tell CTools about plugins the module uses.
File
- ./
key.module, line 103 - Main Key functionality and hook implementations.
Code
function key_ctools_plugin_type() {
$plugins['key_type'] = array(
'cache' => TRUE,
'cache table' => 'cache',
'process' => '_key_plugin_process',
'defaults' => array(
'label' => '',
'description' => '',
'group' => 'none',
'key value' => array(
'plugin' => 'text_field',
),
'default configuration' => NULL,
'build configuration form' => NULL,
'validate configuration form' => NULL,
'submit configuration form' => NULL,
'build delete form' => NULL,
'validate delete form' => NULL,
'submit delete form' => NULL,
'generate key value' => NULL,
'validate key value' => NULL,
),
);
$plugins['key_provider'] = array(
'cache' => TRUE,
'cache table' => 'cache',
'process' => '_key_plugin_process',
'defaults' => array(
'label' => '',
'description' => '',
'storage method' => '',
'key value' => array(
'accepted' => FALSE,
'required' => FALSE,
'editable' => FALSE,
),
'default configuration' => NULL,
'build configuration form' => NULL,
'validate configuration form' => NULL,
'submit configuration form' => NULL,
'build delete form' => NULL,
'validate delete form' => NULL,
'submit delete form' => NULL,
'get key value' => NULL,
'set key value' => NULL,
'delete key value' => NULL,
'obscure key value' => '_key_default_obscure_key_value',
'dependency callback' => NULL,
'dependency errors' => NULL,
'key value form' => NULL,
'key value obscure' => NULL,
'allow base64 encoding' => TRUE,
),
);
$plugins['key_input'] = array(
'cache' => TRUE,
'cache table' => 'cache',
'process' => '_key_plugin_process',
'defaults' => array(
'label' => '',
'description' => '',
'default configuration' => NULL,
'build configuration form' => NULL,
'validate configuration form' => NULL,
'submit configuration form' => NULL,
'build delete form' => NULL,
'validate delete form' => NULL,
'submit delete form' => NULL,
'process submitted key value' => NULL,
'process existing key value' => NULL,
),
);
return $plugins;
}