Same name in other branches
  1. 7.x-3.x quicktabs.module \quicktabs_block_info()
  2. 8.x-1.x quicktabs.module \quicktabs_block_info()

Implements hook_block_info().

Fichier

./quicktabs.module, line 136

Code

function quicktabs_block_info() {
    $blocks = array();
    foreach (quicktabs_get_all_quicktabs() as $qt_name => $quicktab) {
        $blocks[$qt_name]['info'] = $quicktab->title;
    }
    return $blocks;
}