function views_ctools_block_info

Don't show Views' blocks; we expose them already.

File

views_content/views_content.module, line 44

Code

function views_ctools_block_info($module, $delta, &$info) {
    if (strlen($delta) == 32) {
        $hashes = variable_get('views_block_hashes', array());
        if (!empty($hashes[$delta])) {
            $delta = $hashes[$delta];
        }
    }
    if (substr($delta, 0, 1) != '-') {
        $info = NULL;
    }
    else {
        $info['category'] = t('Views');
        $info['icon'] = 'icon_views_block_legacy.png';
        $info['path'] = drupal_get_path('module', 'views_content');
        $info['edit form'] = 'views_content_exposed_form_pane_edit';
        $info['add form'] = 'views_content_exposed_form_pane_edit';
        $info['render callback'] = 'views_content_exposed_form_pane_render';
    }
}