function current_search_current_search_items in Facet API 6.3
Same name and namespace in other branches
- 7.2 contrib/current_search/current_search.module \current_search_current_search_items()
- 7 contrib/current_search/current_search.module \current_search_current_search_items()
Implements hook_current_search_items().
File
- contrib/
current_search/ current_search.module, line 192 - Provides an interface for creating blocks containing information about the current search.
Code
function current_search_current_search_items() {
$path = drupal_get_path('module', 'current_search') . '/plugins/current_search';
return array(
'current_search_item' => array(
'handler' => array(
'label' => t('Abstract class for Current Search items'),
'class' => 'CurrentSearchItem',
'abstract' => TRUE,
'path' => $path,
'file' => 'item.inc',
),
),
'text' => array(
'handler' => array(
'label' => t('Custom text'),
'class' => 'CurrentSearchItemText',
'parent' => 'current_search_item',
'path' => $path,
'file' => 'item_text.inc',
),
),
'active' => array(
'handler' => array(
'label' => t('Active items'),
'class' => 'CurrentSearchItemActive',
'parent' => 'current_search_item',
'path' => $path,
'file' => 'item_active.inc',
),
),
'group' => array(
'handler' => array(
'label' => t('Field group'),
'class' => 'CurrentSearchGroup',
'parent' => 'current_search_item',
'path' => $path,
'file' => 'item_group.inc',
),
),
);
}