function system_ctools_block_info

File

plugins/content_types/block/block.inc, line 411

Code

function system_ctools_block_info($module, $delta, &$info) {
    // Remove the main content fake block.
    if ($delta == 'main') {
        $info = NULL;
        return;
    }
    $menus = array(
        'main-menu',
        'management',
        'navigation',
        'user-menu',
    );
    if (in_array($delta, $menus)) {
        $info['icon'] = 'icon_core_block_menu.png';
        $info['category'] = t('Menus');
        if ($delta == 'navigation') {
            $info['icon'] = 'icon_core_navigation.png';
        }
        return;
    }
    $info['icon'] = 'icon_core_drupal.png';
    if ($delta == 'help') {
        $info['category'] = t('Page elements');
        return;
    }
    $info['category'] = t('Widgets');
}