function finder_ui_info in Finder 7.2
Build the render array for the finder info output.
Parameters
$finder: The finder.
Return value
The render array.
2 calls to finder_ui_info()
- finder_ui::list_build_row in modules/
finder_ui/ plugins/ export_ui/ finder_ui.class.php - Build a row based on the item.
- finder_ui_page in modules/
finder_ui/ includes/ finder.inc - Finder UI page.
File
- modules/
finder_ui/ includes/ common.inc, line 319 - common.inc
Code
function finder_ui_info($finder) {
$finder_info['title']['#prefix'] = '<div class="finder-ui-title">';
$finder_info['title']['#markup'] = '<strong>' . check_plain($finder->title) . '</strong>';
$finder_info['title']['#suffix'] = '</div>';
$finder_info['name']['#prefix'] = '<div class="finder-ui-name">';
$finder_info['name']['#markup'] = '<small>' . t('Machine name') . ': ' . check_plain($finder->name) . '</small>';
$finder_info['name']['#suffix'] = '</div>';
$view = finder_ui_views_title(views_get_view($finder->views_view), $finder->views_view, $finder->views_display, FALSE);
$finder_info['view']['#prefix'] = '<div class="finder-ui-view">';
$finder_info['view']['#markup'] = t('View') . ': ' . check_plain($view);
$finder_info['view']['#suffix'] = '</div>';
$finder_info['description']['#prefix'] = '<div class="finder-ui-description">';
$finder_info['description']['#markup'] = check_plain($finder->description);
$finder_info['description']['#suffix'] = '</div>';
return $finder_info;
}