You are here

function commons_bw_get_tab_definitions in Drupal Commons 7.3

Get a list of modules that add content to a particular type of widget.

The only currently supported widget type is 'group', but this could be extended to support other entities.

Parameters

$widget_type: An optional type of widget to restrict results to, defaults to 'group'.

Return value

array An array of return values of the hook implementations.

2 calls to commons_bw_get_tab_definitions()
commons_bw_generate_group_widget in modules/commons/commons_bw/commons_bw.module
Generate a renderable group widget.
commons_bw_partial_node_form_after_build in modules/commons/commons_bw/commons_bw.module
After-build call-back. See commons_bw_partial_node_form().

File

modules/commons/commons_bw/commons_bw.module, line 358

Code

function commons_bw_get_tab_definitions($widget_type = 'group') {
  $hook_name = 'commons_bw_' . $widget_type . '_widget';
  $tabs = module_invoke_all($hook_name);
  drupal_alter($hook_name, $tabs);
  return $tabs;
}