function search_api_page_result_content_type_render in Search API Pages 7
Renders the custom content type.
1 string reference to 'search_api_page_result_content_type_render'
- search_api_page_result.inc in plugins/
content_types/ search_api_page_result.inc
File
- plugins/
content_types/ search_api_page_result.inc, line 29
Code
function search_api_page_result_content_type_render($subtype, $conf, $panel_args, $context) {
if (!search_api_page_load($conf['page'])) {
return NULL;
}
$keys = NULL;
if (!empty($context) && isset($context->data)) {
$keys = $context->data;
}
// Build the content type block.
$block = new stdClass();
$block->module = 'search_api_page';
$block->delta = 'result';
module_load_include('inc', 'search_api_page', 'search_api_page.pages');
$override_options = array(
'per_page' => $conf['per_page'],
'result_page_search_form' => $conf['result_page_search_form'],
'get_per_page' => $conf['get_per_page'],
'view_mode' => $conf['view_mode'],
);
$block->content = search_api_page_view($conf['page'], $keys, $override_options);
return $block;
}