You are here

function quicktabs_get_blocks in Quick Tabs 7.3

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_get_blocks()
  2. 6.3 includes/admin.inc \quicktabs_get_blocks()
  3. 6 quicktabs.module \quicktabs_get_blocks()
  4. 6.2 includes/admin.inc \quicktabs_get_blocks()
  5. 7.2 includes/admin.inc \quicktabs_get_blocks()

Helper function to get all blocks.

1 call to quicktabs_get_blocks()
QuickBlockContent::optionsForm in plugins/QuickBlockContent.inc
Method for returning the form elements to display for this tab type on the admin form.

File

./quicktabs.admin.inc, line 554
Provides the Quicktabs administrative interface.

Code

function quicktabs_get_blocks() {
  $blocksarray =& drupal_static(__FUNCTION__, array());
  if (empty($blocksarray)) {
    $blocks = _block_rehash();
    $blocksarray = array();
    foreach ($blocks as $block) {
      if ($block['module'] != 'quicktabs') {
        $key = $block['module'] . '_delta_' . $block['delta'];
        $blocksarray[$key] = $block['info'] . ' (' . $block['module'] . ':' . $block['delta'] . ')';
      }
    }
  }
  return $blocksarray;
}