Skip to main content
added 40 characters in body
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

    function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

     function my_install_form_alter(&$form, &$form_state, $form_id) {
       if ($form_id == 'install_select_profile_form') {
         $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); 
         unset($form['profile']['Standard']);
         unset($form['profile']['Minimal']);
       }
     }
    
  2. Now to make install to use my_installmy_install theme I changed settings.php and default.settings.php by adding to both

    $conf['maintenance_theme'] = 'my_install';

     $conf['maintenance_theme'] = 'my_install';
    

that is it.

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

    function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  2. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both

    $conf['maintenance_theme'] = 'my_install';

that is it.

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

     function my_install_form_alter(&$form, &$form_state, $form_id) {
       if ($form_id == 'install_select_profile_form') {
         $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); 
         unset($form['profile']['Standard']);
         unset($form['profile']['Minimal']);
       }
     }
    
  2. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both

     $conf['maintenance_theme'] = 'my_install';
    

that is it.

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

    From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

    function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  2. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both

    $conf['maintenance_theme'] = 'my_install';

function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  1. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both $conf['maintenance_theme'] = 'my_install';

that is it.

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  1. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both $conf['maintenance_theme'] = 'my_install';

that is it.

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

    function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  2. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both

    $conf['maintenance_theme'] = 'my_install';

that is it.

Source Link
Vahan
  • 11
  • 1

This is how I did it and let me know please if there is smarter way.

  1. From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:

function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }

  1. Now to make install to use my_install theme I changed settings.php and default.settings.php by adding to both $conf['maintenance_theme'] = 'my_install';

that is it.