function bean_test_bean_types in Bean (for Drupal 7) 7
Implements hook_bean_types().
File
- tests/
bean_test.module, line 20 - Primary hook implementations for the Bean Test module.
Code
function bean_test_bean_types() {
$plugins = array();
$plugins['test_bean'] = array(
'label' => t('Test'),
'description' => t('This is a test plugin'),
'handler' => array(
'class' => 'BeanTestPlugin',
'parent' => 'bean',
),
);
$plugins['test_bean_2'] = array(
'label' => t('Test 2'),
'description' => t('This is a test plugin'),
'handler' => array(
'class' => 'BeanTestPlugin',
'parent' => 'bean',
),
);
$plugins['test_no_bean'] = 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' => 'BeanPluginWrong',
),
);
return $plugins;
}