Same name in other branches
  1. 7.x-2.x includes/admin.inc \quicktabs_get_blocks()
  2. 8.x-1.x quicktabs.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

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;
}