You are here

function panelizer_settings_page_form in Panelizer 7.3

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_settings_page_form()
  2. 7 includes/admin.inc \panelizer_settings_page_form()
  3. 7.2 includes/admin.inc \panelizer_settings_page_form()

Primary settings page.

This settings page allows the administrator to select which node types can be panelized, whether they have a default, and provides links to edit those defaults.

1 string reference to 'panelizer_settings_page_form'
panelizer_admin_hook_menu in includes/admin.inc
Delegated hook_menu for admin

File

includes/admin.inc, line 116
Contains administrative forms and settings.

Code

function panelizer_settings_page_form($form, &$form_state) {
  $form['entities'] = array(
    '#tree' => TRUE,
  );
  $plugins = panelizer_get_entity_plugins();
  foreach ($plugins as $entity_type => $plugin) {
    $entity_info = entity_get_info($entity_type);
    if ($entity_info) {
      if ($handler = panelizer_entity_plugin_get_handler($entity_type)) {
        $handler
          ->settings_form($form, $form_state);
      }
    }
  }
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}