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

Implements hook_block_view().

Fichier

./quicktabs.module, line 73

Code

function quicktabs_block_view($delta = '') {
    $block = array();
    $qt = quicktabs_build_quicktabs($delta);
    if ($qt) {
        if (isset($qt['content']) && !empty($qt['content'])) {
            $block['content'] = $qt['content'];
            $block['content']['#contextual_links']['quicktabs'] = array(
                'admin/structure/quicktabs/manage',
                array(
                    $delta,
                ),
            );
            $block['subject'] = SafeMarkup::checkPlain($qt['#title']);
        }
    }
    return $block;
}