You are here

function bean_admin_ui_bean_types in Bean (for Drupal 7) 7

Implements hook_bean_types().

File

bean_admin_ui/bean_admin_ui.module, line 88

Code

function bean_admin_ui_bean_types() {
  $plugins = array();

  // Add in the types defined in the UI.
  $bean_types = bean_admin_ui_get_types();
  foreach ($bean_types as $bean_type) {
    $plugins[$bean_type->name] = array(
      'label' => $bean_type->label,
      'description' => empty($bean_type->description) ? '' : $bean_type->description,
      'type' => $bean_type->name,
      'export_status' => $bean_type->type,
    );
    $plugins[$bean_type->name] += _bean_admin_default_plugin();
  }
  return $plugins;
}