You are here

function bean_get_types in Bean (for Drupal 7) 7

Gets an array of all bean types, keyed by the type name.

Return value

BeanType Depending whether $type isset, an array of bean types or a single one.

15 calls to bean_get_types()
BeanTestPlugins::testBeanTypeForm in tests/BeanTestPlugins.test
Test the bean form.
bean_access in ./bean.module
Determines whether the given user has access to a bean.
bean_add_page in includes/bean.pages.inc
Menu Callback to list available bean types to add
bean_add_page_access in ./bean.module
Access callback for the general Bean add page (block/add).
bean_admin_ui_admin_page in bean_admin_ui/bean_admin_ui.admin.inc
Main page callback on the bean type

... See full list

1 string reference to 'bean_get_types'
bean_bean_cache_clear in ./bean.module
Implements hook_bean_cache_clear().

File

./bean.module, line 333
Block Entity

Code

function bean_get_types() {
  $bean_types =& drupal_static(__FUNCTION__);
  if (empty($bean_types)) {
    $bean_types = bean_load_plugin_class_all();
  }
  return $bean_types;
}