function ctools_default_block_info

Provide default icon and categories for blocks when modules don't do this for us.

2 calls to ctools_default_block_info()
forum_ctools_block_info in plugins/content_types/block/block.inc
user_ctools_block_info in plugins/content_types/block/block.inc
1 string reference to 'ctools_default_block_info'
_ctools_block_content_type_content_type in plugins/content_types/block/block.inc
Return an info array for a specific block.

File

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

Code

function ctools_default_block_info($module, $delta, &$info) {
    $core_modules = array(
        'aggregator',
        'block',
        'blog',
        'blogapi',
        'book',
        'color',
        'comment',
        'contact',
        'drupal',
        'filter',
        'forum',
        'help',
        'legacy',
        'locale',
        'menu',
        'node',
        'path',
        'ping',
        'poll',
        'profile',
        'search',
        'statistics',
        'taxonomy',
        'throttle',
        'tracker',
        'upload',
        'user',
        'watchdog',
        'system',
    );
    if (in_array($module, $core_modules)) {
        $info['icon'] = 'icon_core_block.png';
        $info['category'] = t('Miscellaneous');
    }
    else {
        $info['icon'] = 'icon_contrib_block.png';
        $info['category'] = t('Miscellaneous');
    }
}