You are here

function boxes_ctools_plugin_type in Boxes 7.2

Same name and namespace in other branches
  1. 7 boxes.module \boxes_ctools_plugin_type()

Implements hook_ctools_plugin_type().

File

./boxes.module, line 731

Code

function boxes_ctools_plugin_type() {
  return array(
    'types' => array(
      'cache' => TRUE,
      'use hooks' => TRUE,
      'classes' => array(
        'handler',
      ),
      'info file' => TRUE,
      'alterable' => TRUE,
      'defaults' => array(
        'abstract' => FALSE,
        'label' => t('Block'),
        'description' => '',
        'cache_level' => DRUPAL_CACHE_PER_ROLE,
        // Editable in the block type UI
        // THESE should have 'boxes_custom' as the class
        'editable' => FALSE,
        'view_mode' => 'default',
        'handler' => array(
          'class' => 'BoxDefault',
          'parent' => 'box',
          'file' => 'base.inc',
          'path' => drupal_get_path('module', 'boxes') . '/plugins',
        ),
      ),
    ),
  );
}