You are here

function commons_installer_palette in Drupal Commons 7.3

Allow users to select from a predefined list of color palettes during the commons installation.

1 string reference to 'commons_installer_palette'
commons_install_tasks in ./commons.install
Implements hook_install_tasks().

File

./commons.install, line 164
Install, update and uninstall functions for the Commons install profile.

Code

function commons_installer_palette() {
  $form = array();
  require_once drupal_get_path('theme', 'commons_origins') . '/commons_origins.palettes.inc';
  commons_origins_palettes_form($form);
  $form['commons_origins_palette_fieldset']['#collapsible'] = FALSE;
  $form['commons_origins_palette_fieldset']['#collapsed'] = FALSE;
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => st('Save color palette'),
  );
  drupal_add_css('profiles/commons/commons_installer.css');
  return $form;
}