function search_files_helper_list in Search Files 6.2
Same name and namespace in other branches
- 5 search_files.module \search_files_helper_list()
- 7.2 search_files.module \search_files_helper_list()
display a themes table of the current helper apps set up in the system
Return value
(string) html table
1 string reference to 'search_files_helper_list'
- search_files_menu in ./
search_files.module - Implementation of hook_menu().
File
- ./
search_files.module, line 268 - Used to index files in attachments and directories
Code
function search_files_helper_list() {
$output = '';
$header = array(
t('Helper name'),
t('Extension'),
array(
'data' => t('Operations'),
'colspan' => '3',
),
);
$sql = "\n SELECT *\n FROM {search_files_helpers}\n ORDER BY extension\n ";
$result = db_query($sql);
$helpers[] = array();
$destination = drupal_get_destination();
while ($helper = db_fetch_object($result)) {
$helpers[] = array(
$helper->name,
$helper->extension,
l(t('Edit'), 'admin/settings/search_files/helpers/edit/' . $helper->id),
l(t('Delete'), 'admin/settings/search_files/helpers/delete/' . $helper->id),
array(
$destination,
),
);
}
$output .= theme('table', $header, $helpers);
// safe_mode will inhibit shell_exec()
if (search_files_issafemode()) {
$output .= t('<b>WARNING!</b> This server has safe_mode enabled, which inhibits use of helper applications');
}
else {
$output .= t('Good. This server has safe_mode disabled, which allows use of helper applications');
}
$output .= "<br/>\n";
return $output;
}