Created
July 4, 2010 19:35
-
-
Save bmann/463691 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function acquiaslim_profile_modules() { | |
$modules = array( | |
// Default Drupal modules. | |
'color', 'comment', 'help', 'menu', 'taxonomy', 'dblog', | |
// More core | |
'path', | |
// Contributed modules | |
'admin_menu', 'backup_migrate', 'backup_migrate_files', 'token', 'pathauto' | |
); | |
return $modules; | |
} | |
function acquiaslim_profile_details() { | |
return array( | |
'name' => 'Acquia Slim', | |
'description' => 'Acquia module bundle without the Acquia' | |
); | |
} | |
function acquiaslim_profile_task_list() { | |
// This is the only profile method that is invoked before the first page is | |
// displayed during the install sequence. Use this opportunity to theme the | |
// install experience. | |
global $conf; | |
$conf['site_name'] = 'Acquia Slim'; | |
} | |
function acquiaslim_profile_tasks(&$task, $url) { | |
global $language; | |
$types = array( | |
array( | |
'type' => 'page', | |
'name' => st('Page'), | |
'module' => 'node', | |
'description' => st("A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an \"About us\" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site's initial home page."), | |
'custom' => TRUE, | |
'modified' => TRUE, | |
'locked' => FALSE, | |
'help' => '', | |
'min_word_count' => '', | |
), | |
); | |
foreach ($types as $type) { | |
$type = (object) _node_type_set_defaults($type); | |
node_type_save($type); | |
} | |
// Default page to not be promoted and have comments disabled. | |
variable_set('node_options_page', array('status')); | |
variable_set('comment_page', COMMENT_NODE_DISABLED); | |
// Don't display date and author information for page nodes by default. | |
$theme_settings = variable_get('theme_settings', array()); | |
$theme_settings['toggle_node_info_page'] = FALSE; | |
variable_set('theme_settings', $theme_settings); | |
// Update the menu router information. | |
menu_rebuild(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment