Пример #1
0
function elsinore_settings($saved_settings)
{
    // Get the default values from the .info file.
    $defaults = mothership_theme_get_default_settings('elsinore');
    $settings = array_merge($defaults, $saved_settings);
    // Add the base theme's settings.
    $form = array();
    $form += mothership_settings($saved_settings, $defaults);
    // Return the form
    return $form;
}
Пример #2
0
function urbanmediaspace_mothership_settings($saved_settings)
{
    // Get the default values from the .info file.
    $defaults = mothership_theme_get_default_settings('urbanmediaspace_mothership');
    //EDIT THIS!
    $settings = array_merge($defaults, $saved_settings);
    // Add the base theme's settings.
    $form = array();
    $form += mothership_settings($saved_settings, $defaults);
    // Return the form
    return $form;
}
Пример #3
0
function aarhus_settings($saved_settings)
{
    // Get the default values from the .info file.
    $defaults = mothership_theme_get_default_settings('aarhus');
    $settings = array_merge($defaults, $saved_settings);
    // Add the base theme's settings.
    $form = array();
    $form += mothership_settings($saved_settings, $defaults);
    // ----- Theme specific settings
    // Toggle badges (by default in footer).
    $form['badge_settings'] = array('#type' => 'fieldset', '#title' => t('Badge settings'), '#weight' => -5, 'badge_ting_enable' => array('#type' => 'checkbox', '#title' => t('Show Empowered by TING badge'), '#default_value' => $settings['badge_ting_enable']), 'badge_citybrand_enable' => array('#type' => 'checkbox', '#title' => t('Show Citybrand Message'), '#default_value' => $settings['badge_citybrand_enable']), 'badge_aarhus2017_enable' => array('#type' => 'checkbox', '#title' => t('Show Aarhus 2017 badge'), '#default_value' => $settings['badge_aarhus2017_enable']));
    // Optionally load Typekit
    $form['typekit_settings'] = array('#type' => 'fieldset', '#title' => t('Typekit Settings'), '#weight' => 6, 'typekit_enable' => array('#type' => 'checkbox', '#title' => t('Enable TypeKit'), '#description' => t('Enable Typekit for this site'), '#default_value' => $settings['typekit_enable']), 'typekit_kit_id' => array('#type' => 'textfield', '#title' => t('ID for your kit'), '#size' => 20, '#maxlength' => 30, '#default_value' => $settings['typekit_kit_id']));
    // Return the form
    return $form;
}
function mothership_settings($saved_settings, $subtheme_defaults = array())
{
    // Get the default values from the .info file.
    $defaults = mothership_theme_get_default_settings('mothership');
    // Allow a subtheme to override the default values.
    $defaults = array_merge($defaults, $subtheme_defaults);
    //zen ftw
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    global $vars;
    // -- cleanup -------------------------------------
    $form['cleanup'] = array('#type' => 'fieldset', '#title' => t('"Tipl Phiphs" CSS Cleanup'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    // -- body -------------------------------------
    $form['cleanup']['body'] = array('#type' => 'fieldset', '#title' => t('body classes (page.tpl)'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['body']['mothership_cleanup_body_remove'] = array('#type' => 'checkbox', '#title' => t('Removes drupals standard body classes'), '#default_value' => $settings['mothership_cleanup_body_remove']);
    $form['cleanup']['body']['add'] = array('#type' => 'fieldset', '#title' => t('Rebuild drupal standard classes:'), '#collapsible' => FALSE, '#collapsed' => FALSE);
    $form['cleanup']['body']['add']['mothership_cleanup_body_front'] = array('#type' => 'checkbox', '#title' => t('.front : if its the frontpage '), '#default_value' => $settings['mothership_cleanup_body_front']);
    $form['cleanup']['body']['add']['mothership_cleanup_body_front_not'] = array('#type' => 'checkbox', '#title' => t('.not-front :if its not the frontpage'), '#default_value' => $settings['mothership_cleanup_body_front_not']);
    $form['cleanup']['body']['add']['mothership_cleanup_body_loggedin'] = array('#type' => 'checkbox', '#title' => t('.logged-in : if user is logged in'), '#default_value' => $settings['mothership_cleanup_body_loggedin']);
    $form['cleanup']['body']['add']['mothership_cleanup_body_loggedin_not'] = array('#type' => 'checkbox', '#title' => t('.not-logged-in : if user is not  logged in'), '#default_value' => $settings['mothership_cleanup_body_loggedin_not']);
    $form['cleanup']['body']['add']['mothership_cleanup_body_layout'] = array('#type' => 'checkbox', '#title' => t('layout class: .two-sidebars | .no-sidebars | .one-sidebar .sidebar-left/right'), '#default_value' => $settings['mothership_cleanup_body_layout']);
    $form['cleanup']['body']['add']['mothership_cleanup_body_nodetype'] = array('#type' => 'checkbox', '#title' => t('.node-type-[NODETYPE]'), '#default_value' => $settings['mothership_cleanup_body_nodetype']);
    $form['cleanup']['body']['mothership_cleanup_body_pagearg_one'] = array('#type' => 'checkbox', '#title' => t('.page-[1. part of the path ] '), '#default_value' => $settings['mothership_cleanup_body_pagearg_one']);
    $form['cleanup']['body']['mothership_cleanup_body_add_path'] = array('#type' => 'checkbox', '#title' => t('.path-[URL]'), '#default_value' => $settings['mothership_cleanup_body_add_path']);
    $form['cleanup']['body']['mothership_cleanup_body_add_last'] = array('#type' => 'checkbox', '#title' => t('last path: .pathlast-[last]'), '#default_value' => $settings['mothership_cleanup_body_add_last']);
    $form['cleanup']['body']['mothership_cleanup_body_actions'] = array('#type' => 'checkbox', '#title' => t('node actions: .add, .edit, .delete'), '#default_value' => $settings['mothership_cleanup_body_actions']);
    $form['cleanup']['body']['mothership_cleanup_body_admin'] = array('#type' => 'checkbox', '#title' => t('admin module active:  .adminmenu'), '#default_value' => $settings['mothership_cleanup_body_admin']);
    // -- node -------------------------------------
    $form['cleanup']['node'] = array('#type' => 'fieldset', '#title' => t('node.tpl'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['node']['mothership_cleanup_node_node'] = array('#type' => 'checkbox', '#title' => t('add node '), '#default_value' => $settings['mothership_cleanup_node_node']);
    $form['cleanup']['node']['mothership_cleanup_node_sticky'] = array('#type' => 'checkbox', '#title' => t('add sticky'), '#default_value' => $settings['mothership_cleanup_node_sticky']);
    $form['cleanup']['node']['mothership_cleanup_node_published'] = array('#type' => 'checkbox', '#title' => t('add node-unpublished'), '#default_value' => $settings['mothership_cleanup_node_published']);
    $form['cleanup']['node']['mothership_cleanup_node_promoted'] = array('#type' => 'checkbox', '#title' => t('add promoted'), '#default_value' => $settings['mothership_cleanup_node_promoted']);
    $form['cleanup']['node']['mothership_cleanup_node_content_type'] = array('#type' => 'checkbox', '#title' => t('node: content type '), '#default_value' => $settings['mothership_cleanup_node_content_type']);
    $form['cleanup']['node']['mothership_cleanup_node_teaser'] = array('#type' => 'checkbox', '#title' => t('node: teaser '), '#default_value' => $settings['mothership_cleanup_node_teaser']);
    $form['cleanup']['node']['mothership_cleanup_node_id'] = array('#type' => 'checkbox', '#title' => t('id - generate a #node-nid '), '#default_value' => $settings['mothership_cleanup_node_id']);
    $form['cleanup']['node']['mothership_cleanup_node_clearfix'] = array('#type' => 'checkbox', '#title' => t('add .clearfix '), '#default_value' => $settings['mothership_cleanup_node_clearfix']);
    // -- block -------------------------------------
    $form['cleanup']['block'] = array('#type' => 'fieldset', '#title' => t('block.tpl'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['block']['mothership_cleanup_block_block'] = array('#type' => 'checkbox', '#title' => t('add block'), '#default_value' => $settings['mothership_cleanup_block_block']);
    $form['cleanup']['block']['mothership_cleanup_block_module'] = array('#type' => 'checkbox', '#title' => t('add module name'), '#default_value' => $settings['mothership_cleanup_block_module']);
    $form['cleanup']['block']['mothership_cleanup_block_region_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even  in the region region-odd / region-even'), '#default_value' => $settings['mothership_cleanup_block_region_zebra']);
    $form['cleanup']['block']['mothership_cleanup_block_region_count'] = array('#type' => 'checkbox', '#title' => t('add  region region-count-x'), '#default_value' => $settings['mothership_cleanup_block_region_count']);
    $form['cleanup']['block']['mothership_cleanup_block_loggedin'] = array('#type' => 'checkbox', '#title' => t('add block-logged-in'), '#default_value' => $settings['mothership_cleanup_block_loggedin']);
    $form['cleanup']['block']['mothership_cleanup_block_front'] = array('#type' => 'checkbox', '#title' => t('add block-front'), '#default_value' => $settings['mothership_cleanup_block_front']);
    $form['cleanup']['block']['mothership_cleanup_block_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even for all blocks'), '#default_value' => $settings['mothership_cleanup_block_zebra']);
    $form['cleanup']['block']['mothership_cleanup_block_count'] = array('#type' => 'checkbox', '#title' => t('add  count for all blocks count-x'), '#default_value' => $settings['mothership_cleanup_block_count']);
    $form['cleanup']['block']['mothership_cleanup_block_id'] = array('#type' => 'checkbox', '#title' => t('id - generate a id for the block '), '#default_value' => $settings['mothership_cleanup_block_id']);
    // -- comments ------------------------------------- */
    $form['cleanup']['comment'] = array('#type' => 'fieldset', '#title' => t('comments'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['comment']['mothership_cleanup_comment_comment'] = array('#type' => 'checkbox', '#title' => t('add comment'), '#default_value' => $settings['mothership_cleanup_comment_comment']);
    $form['cleanup']['comment']['mothership_cleanup_comment_new'] = array('#type' => 'checkbox', '#title' => t('add new'), '#default_value' => $settings['mothership_cleanup_comment_new']);
    $form['cleanup']['comment']['mothership_cleanup_comment_status'] = array('#type' => 'checkbox', '#title' => t('add status'), '#default_value' => $settings['mothership_cleanup_comment_status']);
    $form['cleanup']['comment']['mothership_cleanup_comment_first'] = array('#type' => 'checkbox', '#title' => t('add first'), '#default_value' => $settings['mothership_cleanup_comment_first']);
    $form['cleanup']['comment']['mothership_cleanup_comment_last'] = array('#type' => 'checkbox', '#title' => t('add last'), '#default_value' => $settings['mothership_cleanup_comment_last']);
    $form['cleanup']['comment']['mothership_cleanup_comment_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd even'), '#default_value' => $settings['mothership_cleanup_comment_zebra']);
    $form['cleanup']['comment']['mothership_cleanup_comment_front'] = array('#type' => 'checkbox', '#title' => t('add front'), '#default_value' => $settings['mothership_cleanup_comment_front']);
    $form['cleanup']['comment']['mothership_cleanup_comment_comment'] = array('#type' => 'checkbox', '#title' => t('add comment'), '#default_value' => $settings['mothership_cleanup_comment_comment']);
    $form['cleanup']['comment']['mothership_cleanup_comment_loggedin'] = array('#type' => 'checkbox', '#title' => t('add logged-in'), '#default_value' => $settings['mothership_cleanup_comment_loggedin']);
    $form['cleanup']['comment']['mothership_cleanup_comment_user'] = array('#type' => 'checkbox', '#title' => t('add user-'), '#default_value' => $settings['mothership_cleanup_comment_user']);
    // -- views ------------------------------------- */
    $form['views'] = array('#type' => 'fieldset', '#title' => t('Views'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    //list
    $form['views']['list'] = array('#type' => 'fieldset', '#title' => t('List'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['views']['list']['mothership_cleanup_views_row_identify'] = array('#type' => 'checkbox', '#title' => t('views-row prefix to the classes:  (.views-row-first/.views-row-last, .views-row-[count], .views-row-odd/.views-row-even '), '#default_value' => $settings['mothership_cleanup_views_row_identify']);
    $form['views']['list']['mothership_cleanup_views_first_last'] = array('#type' => 'checkbox', '#title' => t('first & last classes to the list  .first .last '), '#default_value' => $settings['mothership_cleanup_views_first_last']);
    $form['views']['list']['mothership_cleanup_views_zebra'] = array('#type' => 'checkbox', '#title' => t('odd / even class  .odd, .even'), '#default_value' => $settings['mothership_cleanup_views_zebra']);
    $form['views']['list']['mothership_cleanup_views_row_count'] = array('#type' => 'checkbox', '#title' => t('Row counting .row-[count]  '), '#default_value' => $settings['mothership_cleanup_views_row_count']);
    //tables
    $form['views']['table'] = array('#type' => 'fieldset', '#title' => t('Tables'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['views']['table']['mothership_cleanup_views_table_first_last'] = array('#type' => 'checkbox', '#title' => t('add first & last class in table rows'), '#default_value' => $settings['mothership_cleanup_views_table_first_last']);
    $form['views']['table']['mothership_cleanup_views_table_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even class to the table rows '), '#default_value' => $settings['mothership_cleanup_views_table_zebra']);
    $form['views']['table']['mothership_cleanup_views_table_row_count'] = array('#type' => 'checkbox', '#title' => t('row-x to the table rows'), '#default_value' => $settings['mothership_cleanup_views_table_row_count']);
    //grid
    $form['views']['grid'] = array('#type' => 'fieldset', '#title' => t('Grid'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    // -- menu ------------------------------------- */
    $form['menu'] = array('#type' => 'fieldset', '#title' => t('Menu'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['menu']['mothership_cleanup_menu_baseclass'] = array('#type' => 'checkbox', '#title' => t('menus  ul gets a class=menu'), '#default_value' => $settings['mothership_cleanup_menu_baseclass']);
    $form['menu']['mothership_cleanup_menu_baseclass'] = array('#type' => 'checkbox', '#title' => t('add a baseclass to the menus '), '#default_value' => $settings['mothership_cleanup_menu_baseclass']);
    $form['menu']['mothership_cleanup_menu_leafs'] = array('#type' => 'checkbox', '#title' => t('add  leaf  & expanded class to the li'), '#default_value' => $settings['mothership_cleanup_menu_leafs']);
    $form['menu']['mothership_cleanup_menu_classes_active'] = array('#type' => 'checkbox', '#title' => t('add a active class for the li in a menu'), '#default_value' => $settings['mothership_cleanup_menu_classes_active']);
    $form['menu']['mothership_cleanup_menu_classes_first_last'] = array('#type' => 'checkbox', '#title' => t('adds a first & last class in the li'), '#default_value' => $settings['mothership_cleanup_menu_classes_first_last']);
    $form['menu']['mothership_cleanup_links_baseclass'] = array('#type' => 'checkbox', '#title' => t('add a baseclasses to links -primary & secundary '), '#default_value' => $settings['mothership_cleanup_links_baseclass']);
    $form['menu']['mothership_cleanup_links_classes_active'] = array('#type' => 'checkbox', '#title' => t('add a active class for the li in the links'), '#default_value' => $settings['mothership_cleanup_links_classes_active']);
    $form['menu']['mothership_cleanup_links_classes_first_last'] = array('#type' => 'checkbox', '#title' => t('adds a first & last class in the li'), '#default_value' => $settings['mothership_cleanup_links_classes_first_last']);
    // -- style sheet  ------------------------------------- */
    $form['stylesheets'] = array('#type' => 'fieldset', '#title' => t('stylesheets'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['stylesheets']['mothership_stylesheet_load_order'] = array('#type' => 'checkbox', '#title' => t('stylesheet loading order in the .info file'), '#default_value' => $settings['mothership_stylesheet_load_order'], '#description' => t('.info file: <strong>top stylesheets[all][] = foo.css</strong>'));
    $form['stylesheets']['mothership_stylesheet_conditional'] = array('#type' => 'checkbox', '#title' => t('ie specific stylesheet conditions in the .info file'), '#default_value' => $settings['mothership_stylesheet_conditional'], '#description' => t('.info file: <strong>ie stylesheets[ condition ][all][] = ie.css</strong> condition exampels [if lt IE 7] , [if IE 7] , [if IE 6]'));
    // -- misc ------------------------------------- */
    $form['misc'] = array('#type' => 'fieldset', '#title' => t('misc stuff'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['misc']['mothership_item_list_first_last'] = array('#type' => 'checkbox', '#title' => t('first & last classes from item lists'), '#default_value' => $settings['mothership_item_list_first_last']);
    $form['misc']['mothership_item_list_zebra'] = array('#type' => 'checkbox', '#title' => t('item lists zebra'), '#default_value' => $settings['mothership_item_list_zebra']);
    $form['misc']['mothership_cleanup_user_verified'] = array('#type' => 'checkbox', '#title' => t('show (user verified) if a user isnt verified'), '#default_value' => $settings['mothership_cleanup_user_verified']);
    // -- theme development -------------------------------------
    $form['misc']['mothership_rebuild_registry'] = array('#type' => 'checkbox', '#title' => t('Rebuild theme registry on every page.'), '#default_value' => $settings['mothership_rebuild_registry'], '#description' => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')));
    // -- features ------------------------------------- */
    $form['misc']['features'] = array('#type' => 'fieldset', '#title' => t('Sneaky Features'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['misc']['features']['mothership_cleanup_node_regions'] = array('#type' => 'checkbox', '#title' => t('add regions to nodes '), '#default_value' => $settings['mothership_cleanup_node_regions']);
    // Return form
    return $form;
}
Пример #5
0
function mothership_settings($saved_settings, $subtheme_defaults = array())
{
    // Get the default values from the .info file.
    $defaults = mothership_theme_get_default_settings('mothership');
    // Allow a subtheme to override the default values.
    $defaults = array_merge($defaults, $subtheme_defaults);
    //zen ftw
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    // Merge the saved variables and their default values.
    $settings = array_merge($defaults, $saved_settings);
    global $vars;
    // -- cleanup -------------------------------------
    $form['cleanup'] = array('#type' => 'fieldset', '#title' => t('"Tipl Phiphs" CSS Cleanup'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    // -- body -------------------------------------
    $form['cleanup']['body'] = array('#type' => 'fieldset', '#title' => t('body (page.tpl)'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['body']['mothership_cleanup_body_path'] = array('#type' => 'checkbox', '#title' => t('Add path based class'), '#default_value' => $settings['mothership_cleanup_body_path']);
    $form['cleanup']['body']['mothership_cleanup_body_actions'] = array('#type' => 'checkbox', '#title' => t('Add action based classes: edit, delete'), '#default_value' => $settings['mothership_cleanup_body_actions']);
    // -- node -------------------------------------
    $form['cleanup']['node'] = array('#type' => 'fieldset', '#title' => t('node.tpl'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['node']['mothership_cleanup_node_node'] = array('#type' => 'checkbox', '#title' => t('add node '), '#default_value' => $settings['mothership_cleanup_node_node']);
    $form['cleanup']['node']['mothership_cleanup_node_sticky'] = array('#type' => 'checkbox', '#title' => t('add sticky'), '#default_value' => $settings['mothership_cleanup_node_sticky']);
    $form['cleanup']['node']['mothership_cleanup_node_published'] = array('#type' => 'checkbox', '#title' => t('add node-unpublished'), '#default_value' => $settings['mothership_cleanup_node_published']);
    $form['cleanup']['node']['mothership_cleanup_node_promoted'] = array('#type' => 'checkbox', '#title' => t('add promoted'), '#default_value' => $settings['mothership_cleanup_node_promoted']);
    $form['cleanup']['node']['mothership_cleanup_node_content_type'] = array('#type' => 'checkbox', '#title' => t('node: content type '), '#default_value' => $settings['mothership_cleanup_node_content_type']);
    $form['cleanup']['node']['mothership_cleanup_node_teaser'] = array('#type' => 'checkbox', '#title' => t('node: teaser '), '#default_value' => $settings['mothership_cleanup_node_teaser']);
    $form['cleanup']['node']['mothership_cleanup_node_id'] = array('#type' => 'checkbox', '#title' => t('id - generate a #node-nid '), '#default_value' => $settings['mothership_cleanup_node_id']);
    // -- block -------------------------------------
    $form['cleanup']['block'] = array('#type' => 'fieldset', '#title' => t('block.tpl'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['block']['mothership_cleanup_block_block'] = array('#type' => 'checkbox', '#title' => t('add block'), '#default_value' => $settings['mothership_cleanup_block_block']);
    $form['cleanup']['block']['mothership_cleanup_block_module'] = array('#type' => 'checkbox', '#title' => t('add module name'), '#default_value' => $settings['mothership_cleanup_block_module']);
    $form['cleanup']['block']['mothership_cleanup_block_region_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even  in the region region-odd / region-even'), '#default_value' => $settings['mothership_cleanup_block_region_zebra']);
    $form['cleanup']['block']['mothership_cleanup_block_region_count'] = array('#type' => 'checkbox', '#title' => t('add  region region-count-x'), '#default_value' => $settings['mothership_cleanup_block_region_count']);
    $form['cleanup']['block']['mothership_cleanup_block_loggedin'] = array('#type' => 'checkbox', '#title' => t('add block-logged-in'), '#default_value' => $settings['mothership_cleanup_block_loggedin']);
    $form['cleanup']['block']['mothership_cleanup_block_front'] = array('#type' => 'checkbox', '#title' => t('add block-front'), '#default_value' => $settings['mothership_cleanup_block_front']);
    $form['cleanup']['block']['mothership_cleanup_block_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even for all blocks'), '#default_value' => $settings['mothership_cleanup_block_zebra']);
    $form['cleanup']['block']['mothership_cleanup_block_count'] = array('#type' => 'checkbox', '#title' => t('add  count for all blocks count-x'), '#default_value' => $settings['mothership_cleanup_block_count']);
    $form['cleanup']['block']['mothership_cleanup_block_id'] = array('#type' => 'checkbox', '#title' => t('id - generate a id for the block '), '#default_value' => $settings['mothership_cleanup_block_id']);
    // -- comments ------------------------------------- */
    $form['cleanup']['comment'] = array('#type' => 'fieldset', '#title' => t('comments'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['cleanup']['comment']['mothership_cleanup_comment_comment'] = array('#type' => 'checkbox', '#title' => t('add comment'), '#default_value' => $settings['mothership_cleanup_comment_comment']);
    $form['cleanup']['comment']['mothership_cleanup_comment_new'] = array('#type' => 'checkbox', '#title' => t('add new'), '#default_value' => $settings['mothership_cleanup_comment_new']);
    $form['cleanup']['comment']['mothership_cleanup_comment_status'] = array('#type' => 'checkbox', '#title' => t('add status'), '#default_value' => $settings['mothership_cleanup_comment_status']);
    $form['cleanup']['comment']['mothership_cleanup_comment_first'] = array('#type' => 'checkbox', '#title' => t('add first'), '#default_value' => $settings['mothership_cleanup_comment_first']);
    $form['cleanup']['comment']['mothership_cleanup_comment_last'] = array('#type' => 'checkbox', '#title' => t('add last'), '#default_value' => $settings['mothership_cleanup_comment_last']);
    $form['cleanup']['comment']['mothership_cleanup_comment_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd even'), '#default_value' => $settings['mothership_cleanup_comment_zebra']);
    $form['cleanup']['comment']['mothership_cleanup_comment_front'] = array('#type' => 'checkbox', '#title' => t('add front'), '#default_value' => $settings['mothership_cleanup_comment_front']);
    $form['cleanup']['comment']['mothership_cleanup_comment_comment'] = array('#type' => 'checkbox', '#title' => t('add comment'), '#default_value' => $settings['mothership_cleanup_comment_comment']);
    $form['cleanup']['comment']['mothership_cleanup_comment_loggedin'] = array('#type' => 'checkbox', '#title' => t('add logged-in'), '#default_value' => $settings['mothership_cleanup_comment_loggedin']);
    $form['cleanup']['comment']['mothership_cleanup_comment_user'] = array('#type' => 'checkbox', '#title' => t('add user-'), '#default_value' => $settings['mothership_cleanup_comment_user']);
    // -- views ------------------------------------- */
    $form['views'] = array('#type' => 'fieldset', '#title' => t('Views'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['views']['mothership_cleanup_views_first_last'] = array('#type' => 'checkbox', '#title' => t('add first & last classes from views list'), '#default_value' => $settings['mothership_cleanup_views_first_last']);
    $form['views']['mothership_cleanup_views_zebra'] = array('#type' => 'checkbox', '#title' => t('add odd / even class '), '#default_value' => $settings['mothership_cleanup_views_zebra']);
    $form['views']['mothership_cleanup_views_row_ident'] = array('#type' => 'checkbox', '#title' => t('add views-row '), '#default_value' => $settings['mothership_cleanup_views_row_ident']);
    // -- menu ------------------------------------- */
    $form['menu'] = array('#type' => 'fieldset', '#title' => t('Menu'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['menu']['mothership_cleanup_menu_baseclass'] = array('#type' => 'checkbox', '#title' => t('menus  ul gets a class=menu'), '#default_value' => $settings['mothership_cleanup_menu_baseclass']);
    $form['menu']['mothership_cleanup_menu_baseclass'] = array('#type' => 'checkbox', '#title' => t('add a baseclass to the menus '), '#default_value' => $settings['mothership_cleanup_menu_baseclass']);
    $form['menu']['mothership_cleanup_menu_leafs'] = array('#type' => 'checkbox', '#title' => t('add  leaf  & expanded class to the li'), '#default_value' => $settings['mothership_cleanup_menu_leafs']);
    $form['menu']['mothership_cleanup_menu_classes_active'] = array('#type' => 'checkbox', '#title' => t('add a active class for the li'), '#default_value' => $settings['mothership_cleanup_menu_classes_active']);
    $form['menu']['mothership_cleanup_menu_classes_first_last'] = array('#type' => 'checkbox', '#title' => t('adds a first & last class in the li'), '#default_value' => $settings['mothership_cleanup_menu_classes_first_last']);
    $form['menu']['mothership_cleanup_links_baseclass'] = array('#type' => 'checkbox', '#title' => t('add a baseclasses to links -primary & secundary '), '#default_value' => $settings['mothership_cleanup_links_baseclass']);
    $form['menu']['mothership_cleanup_links_classes_active'] = array('#type' => 'checkbox', '#title' => t('add a active class for the li'), '#default_value' => $settings['mothership_cleanup_links_classes_active']);
    $form['menu']['mothership_cleanup_links_classes_first_last'] = array('#type' => 'checkbox', '#title' => t('adds a first & last class in the li'), '#default_value' => $settings['mothership_cleanup_links_classes_first_last']);
    // -- style sheet  ------------------------------------- */
    $form['stylesheets'] = array('#type' => 'fieldset', '#title' => t('stylesheets'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['stylesheets']['mothership_stylesheet_load_order'] = array('#type' => 'checkbox', '#title' => t('stylesheet loading order in the .info file'), '#default_value' => $settings['mothership_stylesheet_load_order'], '#description' => t('.info file: <strong>top stylesheets[all][] = foo.css</strong>'));
    $form['stylesheets']['mothership_stylesheet_conditional'] = array('#type' => 'checkbox', '#title' => t('ie specific stylesheet conditions in the .info file'), '#default_value' => $settings['mothership_stylesheet_conditional'], '#description' => t('.info file: <strong>stylesheets[ condition ][all][] = ie.css</strong>. exampels [if lt IE 7] , [if IE 7] , [if IE 6]'));
    // -- misc ------------------------------------- */
    $form['misc'] = array('#type' => 'fieldset', '#title' => t('misc stuff'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['misc']['mothership_item_list_first_last'] = array('#type' => 'checkbox', '#title' => t('first & last classes from item lists'), '#default_value' => $settings['mothership_item_list_first_last']);
    $form['misc']['mothership_item_list_zebra'] = array('#type' => 'checkbox', '#title' => t('item lists zebra'), '#default_value' => $settings['mothership_item_list_zebra']);
    $form['misc']['mothership_cleanup_user_verified'] = array('#type' => 'checkbox', '#title' => t('show (user verified) if a user isnt verified'), '#default_value' => $settings['mothership_cleanup_user_verified']);
    // -- theme development -------------------------------------
    $form['misc']['mothership_rebuild_registry'] = array('#type' => 'checkbox', '#title' => t('Rebuild theme registry on every page.'), '#default_value' => $settings['mothership_rebuild_registry'], '#description' => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')));
    // -- features ------------------------------------- */
    $form['misc']['features'] = array('#type' => 'fieldset', '#title' => t('Sneaky Features'), '#collapsible' => TRUE, '#collapsed' => FALSE);
    $form['misc']['features']['mothership_cleanup_node_regions'] = array('#type' => 'checkbox', '#title' => t('add regions to nodes '), '#default_value' => $settings['mothership_cleanup_node_regions']);
    // Return form
    return $form;
}