Same name in other branches
- 7.x-2.x includes/admin.inc \quicktabs_get_blocks()
- 7.x-3.x quicktabs.admin.inc \quicktabs_get_blocks()
Helper function to get all blocks.
1 call to quicktabs_get_blocks()
- QuickBlockContent::optionsForm in src/
Plugin/ QuickContent/ QuickBlockContent.php - Method for returning the form elements to display for this tab type on the admin form.
File
-
./
quicktabs.admin.inc, line 467
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;
}