You are here

function simplify_admin_settings in Simplify 7.2

Form builder. Simplify admin settings.

1 string reference to 'simplify_admin_settings'
simplify_menu in ./simplify.module
Implements hook_menu().

File

./simplify.module, line 114
Simplifies the admin interface.

Code

function simplify_admin_settings() {
  $form = array();
  $node_types = node_type_get_types();

  // Add general node to list of node types (all nodes)
  array_unshift($node_types, array(
    'type' => 'node',
    'name' => 'All',
  ));
  foreach ($node_types as $key => $value) {
    simplify_get_admin_settings_array($form, (array) $value);
  }
  return system_settings_form($form);
}