function boxes_test_boxes_types in Boxes 7.2
Implements hook_box_types().
File
- tests/
boxes_test.module, line 20
Code
function boxes_test_boxes_types() {
$plugins = array();
$plugins['test_box'] = array(
'label' => t('Test'),
'description' => t('This is a test plugin'),
'handler' => array(
'class' => 'BoxTestPlugin',
'parent' => 'box',
),
);
$plugins['test_box_2'] = array(
'label' => t('Test 2'),
'description' => t('This is a test plugin'),
'handler' => array(
'class' => 'BoxTestPlugin',
'parent' => 'box',
),
);
$plugins['test_no_box'] = array(
'label' => t('Test No Class'),
'description' => t('This class does not exist'),
'handler' => array(
'class' => 'ClassDoesNotExist',
),
);
$plugins['test_wrong_class'] = array(
'label' => t('Test Invalid Class'),
'description' => t('This class does not exist'),
'handler' => array(
'class' => 'BoxPluginWrong',
),
);
return $plugins;
}