Code Snippets

Drupal hook example

function tabbed_filter_filter_info() {
     $filters['bullet_tabs'] = array(
        'title' => t('Bullet tabs'),
        'description' => t('Every HTML Unordered list will be replaced with tabs...'),
        'prepare callback' => '_tabbed_filter_prepare',
        'process callback' => '_tabbed_filter_process',
        'tips callback' => '_tabbed_filter_tips',
    );
    return $filters;
}
Resource Tags: