function user_ctools_block_info

File

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

Code

function user_ctools_block_info($module, $delta, &$info) {
    $info['category'] = t('Activity');
    switch ($delta) {
        case 'login':
            $info['icon'] = 'icon_core_userlogin.png';
            $info['category'] = t('Widgets');
            // Provide a custom render callback, because the default login block
            // will not render on /user, /user/login, or any other URL beginning
            // /user (unless it's a user-specific page such as /user/123).
            $info['render callback'] = 'ctools_user_login_pane_render';
            break;
        case 'new':
            $info['icon'] = 'icon_core_whosnew.png';
            break;
        case 'online':
            $info['icon'] = 'icon_core_whosonline.png';
            break;
        default:
            // Safety net.
            ctools_default_block_info($module, $delta, $info);
    }
}