You are here

function blockgroup_list in Block Group 7.2

Same name and namespace in other branches
  1. 7 blockgroup.module \blockgroup_list()

Return a list of block groups.

8 calls to blockgroup_list()
blockgroup_block_info in ./blockgroup.module
Implements hook_block_info().
blockgroup_edit_blockgroup_name_exists in ./blockgroup.module
Returns whether a block group already exists.
blockgroup_features_export in ./blockgroup.features.inc
Implements [component]_features_export().
blockgroup_features_export_options in ./blockgroup.features.inc
Implements [component]_features_export_options().
blockgroup_features_export_render in ./blockgroup.features.inc
Implements [component]_features_export_render().

... See full list

1 string reference to 'blockgroup_list'
blockgroup_rebuild_data in ./blockgroup.module
Clear caches and rebuild blockgroup and theme data.

File

./blockgroup.module, line 461
Add block groups to block configuration page

Code

function blockgroup_list() {
  $blockgroups =& drupal_static(__FUNCTION__);
  if (!isset($blockgroups)) {
    $blockgroups = db_select('block', 'b')
      ->fields('b', array(
      'delta',
      'title',
    ))
      ->condition('module', 'blockgroup')
      ->execute()
      ->fetchAllKeyed();
  }
  return $blockgroups;
}