function finder_admin_get_base_options in Finder 7
Same name and namespace in other branches
- 6 includes/finder.admin.inc \finder_admin_get_base_options()
Get base handlers and convert to options array.
2 calls to finder_admin_get_base_options()
- finder_admin_add_form in includes/
finder.admin.inc - Admin finder add form.
- finder_admin_edit in includes/
finder.admin.inc - Admin finder edit page.
File
- includes/
finder.admin.inc, line 884 - The finder admin screens.
Code
function finder_admin_get_base_options() {
$bases = finder_base_handlers();
$base_options = array(
'' => t('- Select a finder type -'),
);
if (!empty($bases)) {
foreach ($bases as $base_key => $base_data) {
$base_options[$base_key] = $base_data['#title'];
}
}
else {
drupal_set_message(t('Error: You must activate a finder base handler module such as Finder Views or Finder Node to begin.'), 'error');
return array(
'' => t('- No finder types to choose from -'),
);
}
return $base_options;
}