Same name in other branches
  1. 7.x-3.x quicktabs.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()
_quicktabs_form dans includes/admin.inc

Fichier

includes/admin.inc, line 634

Code

function quicktabs_get_blocks() {
    static $blocksarray;
    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;
}