Skip to content
Browse files

Make the replacements help text pretty

  • Loading branch information...
1 parent dcc5452 commit a3f7633e129c0684f045decf73530d33a57e6678 @lattera lattera committed
Showing with 12 additions and 1 deletion.
  1. +12 −1 vulnscan.admin.inc
View
13 vulnscan.admin.inc
@@ -96,10 +96,21 @@ function vulnscan_admin_settings($form, &$form_state) {
'#title' => t('New Scanner'),
);
+ $replacements = array(
+ array('%{SERVER}', 'Server being scanned (used in cookies)'),
+ array('%{SITE}', 'Site to scan'),
+ array('%{DIR}', 'Scan result output directory'),
+ );
+
+ $header = array('Replacement', 'Meaning');
+
$form['vulnscan_scanner_settings']['new_scanner']['replacements'] = array(
'#type' => 'markup',
'#prefix' => '<div>',
- '#markup' => t('Replacements: %{SERVER} - Server being scanned (used in cookies). %{SITE} - Site to scan (Wayfair, Admin Home, etc.). %{DIR} - Scan result output directory.'),
+ '#markup' => theme('table', array(
+ 'header' => $header,
+ 'rows' => $replacements,
+ )),
'#suffix' => '</div>',
);

0 comments on commit a3f7633

Please sign in to comment.
Something went wrong with that request. Please try again.