function spam_admin_settings in Spam 5
Same name and namespace in other branches
- 5.3 spam.module \spam_admin_settings()
- 6 spam.module \spam_admin_settings()
Provides configuration interface for module.
Return value
HTML for settings page.
1 string reference to 'spam_admin_settings'
- spam_menu in ./
spam.module - Implementation of hook_menu().
File
- ./
spam.module, line 254
Code
function spam_admin_settings() {
$output .= '<h3>' . t('Spam Settings') . '</h3>';
$output .= '<p>' . t('The settings for this module are separated by function with each group of settings represented in the tabs above.') . '</p>';
// $output .= '<p>'. t('') .'</p>';
// $output .= '<p>'. t('') .'</p>';
$tabhdr = array(
t('Tab'),
t('Description'),
);
$tabs = spam_invoke_hook('tab_description');
$x = ksort($tabs, SORT_REGULAR);
$rows = array();
foreach ($tabs as $key => $value) {
$rows[] = array(
$key,
$value,
);
}
$output .= theme('table', $tabhdr, $rows);
$output .= '<p> </p>';
$output .= '<p><strong>' . t('Note') . '</strong>: ' . t('As with all multi-page settings forms, you must use the "Save configuration" button on each page.') . '</p>';
return $output;
}