'fieldset', '#collapsible' => FALSE, '#collapsed' => FALSE, '#title' => t('Table Tidy settings'), ); $file_readme = url(drupal_get_path('module', 'table_tidy') . '/README.txt'); $descr = t('Enter a symbol or short text to replace the content of each table cell whose content is identical to the cell above it.
Most safe HTML snippets are allowed. The HTML class attribute is encouraged, but style="..." is not.'); $examples = t('Example1: "   (just a double quote)
Example2: %snippet1   (the default)
Example3: %snippet2   (requires Font-Awesome icon library, see the README)', array( '%snippet1' => TABLE_TIDY_SAME_AS_ABOVE_TEXT, '%snippet2' => '', '@url_readme' => $file_readme, )); $note = t('Enter your "Same as above" text/markup, press "Save configuration" and visit the content listing to see what it looks like. For more examples see the README.', array( '@url_content' => url('admin/content'), '@url_readme' => $file_readme, )); $form['table_tidy_main']['table_tidy_same_as_above_text'] = array( '#type' => 'textfield', //'#size' => 60, '#title' => t('"Same as above" symbol or text and markup'), '#default_value' => filter_xss_admin(variable_get('table_tidy_same_as_above_text', TABLE_TIDY_SAME_AS_ABOVE_TEXT)), '#description' => $descr . '

' . $examples . '

' . $note, ); $form['table_tidy_main']['table_tidy_included_pages'] = array( '#type' => 'textarea', '#title' => t('Table Tidy active pages'), '#rows' => 6, '#default_value' => variable_get('table_tidy_included_pages', TABLE_TIDY_DEFAULT_INCLUDED_PAGES), '#description' => t('Enter paths of pages that contain tables that need to be tidied up. One path per line. Do not start with a slash. You may use URL aliases and wildcards. A line containing only an asterisk means all pages.
Example: content/recipes/*'), ); $form['table_tidy_global'] = array( '#type' => 'fieldset', '#collapsible' => TRUE, '#collapsed' => TRUE, '#title' => t('Table Tidy icon library'), ); $descr = t("Enter the path to the library's main .css file."); $example = t("For example, for Font-Awesome, you'd probably enter %lib_css", array( '%lib_css' => TABLE_TIDY_DEF_FONT_ICON_LIB_CSS)); $check = t('Check for errors on the Status Report page.', array( '@url_status' => url('admin/reports/status'))); $form['table_tidy_global']['table_tidy_icon_lib_css'] = array( '#type' => 'textfield', '#title' => t('Font icon library'), '#default_value' => variable_get('table_tidy_icon_lib_css', ''), '#description' => $descr . '
' . $example . '
' . $check, ); return system_settings_form($form); }