You are here

function boxes_get_types in Boxes 7.2

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

Parameters

$type_name: If set, the type with the given name is returned.

Return value

box_types[] Depending whether $type isset, an array of boxes types or a single one.

12 calls to boxes_get_types()
BoxesTestPlugins::testBoxesTypeForm in ./boxes.test
Test the boxes form
boxes_access in ./boxes.module
Determines whether the given user has access to a boxes.
boxes_add_page in includes/boxes.pages.inc
Menu Callback to list available box types to add
boxes_add_page_access in ./boxes.module
Access callback for the general boxes add page (block/add).
boxes_admin_ui_admin_page in boxes_admin_ui/boxes_admin_ui.admin.inc
Main page callback on the box type

... See full list

File

./boxes.module, line 244

Code

function boxes_get_types() {
  $box_types =& drupal_static(__FUNCTION__);
  if (empty($box_types)) {
    $box_types = boxes_load_plugin_class_all();
  }
  return $box_types;
}