function hook_box_types in Boxes 7.2
Implements hook_box_types().
Boxes uses ctools plugins to define the block types. All plugin files must be registered in the .info file.
File
- ./
boxes.api.php, line 23
Code
function hook_box_types() {
$plugins = array();
$plugins['plugin_key'] = array(
'label' => t('Title'),
'description' => t('Description'),
// This is optional. Set it to TRUE if you do not want the plugin to be displayed in the UI
'abstract' => FALSE,
'handler' => array(
'class' => 'ClassName',
'parent' => 'box',
),
);
return $plugins;
}