oa_toolbar_search.inc in Open Atrium Search 7.2
File
plugins/content_types/oa_toolbar_search.inc
View source
<?php
$plugin = array(
'title' => t('Toolbar Search'),
'description' => t('Provides a search bar for the toolbar that provides OA-specific options.'),
'single' => TRUE,
'category' => array(
t('Search'),
-9,
),
'edit form' => 'oa_toolbar_search_settings_form',
'render callback' => 'oa_toolbar_search_pane_render',
);
function oa_toolbar_search_settings_form($form, &$form_state) {
return $form;
}
function oa_toolbar_search_pane_render($subtype, $conf, $args, $context) {
drupal_add_css(drupal_get_path('module', 'oa_search') . '/oa_search.css');
$block = new stdClass();
$block->content = array(
'#theme' => 'oa_toolbar_search',
'#options' => array(
'all_spaces' => t('All spaces'),
'this_space' => t('This space'),
'users' => t('Users'),
),
);
return $block;
}