'block', 1 => 'blog', 2 => 'casetracker', 3 => 'casetracker_basic', 4 => 'casetracker_dashboard', 5 => 'color', 6 => 'comment', 7 => 'dapi', 8 => 'dbfmgreybox', 9 => 'tabs', 10 => 'filter', 11 => 'help', 12 => 'menu', 13 => 'node', 14 => 'path', 15 => 'profile_generator', 16 => 'search', 17 => 'statistics', 18 => 'system', 19 => 'dbfm', 20 => 'taxonomy', 21 => 'tracker', 22 => 'upload', 23 => 'user', 24 => 'watchdog', ); } /************************************************************ * DETAILS * ************************************************************/ function CaseTrackerNoProjects_profile_details() { return array ( 'name' => 'CaseTrackerNoProjects', 'description' => 'Installation profile generated automatically on 30th Mar 2008 03:56pm', ); } function CaseTrackerNoProjects_profile_final() { /************************************************************ * VARIABLES * ************************************************************/ variable_set('anonymous', 'Anonymous'); variable_set('casetracker_case_node_types', array ( 'blog' => 'blog', 'story' => 'story', 'page' => 0, 'project' => 0, )); variable_set('casetracker_current_project_number', 100); variable_set('casetracker_dashboard_states_done', array ( 6 => false, 7 => true, 8 => true, 9 => true, 10 => false, )); variable_set('casetracker_default_assign_to', 'Anonymous'); variable_set('casetracker_default_case_priority', '3'); variable_set('casetracker_default_case_status', '6'); variable_set('casetracker_default_case_type', '14'); variable_set('casetracker_project_node_types', array ( 'blog' => 'blog', 'project' => 'project', 'story' => 'story', 'page' => 0, )); variable_set('clean_url', '1'); variable_set('comment_casetracker_basic_case', '2'); variable_set('comment_casetracker_basic_project', '0'); variable_set('comment_page', '0'); variable_set('comment_project', '2'); variable_set('configurable_timezones', '1'); variable_set('date_default_timezone', '-28800'); variable_set('date_first_day', '0'); variable_set('date_format_long', 'l, F j, Y - H:i'); variable_set('date_format_medium', 'D, m/d/Y - H:i'); variable_set('date_format_short', 'm/d/Y - H:i'); variable_set('dbfm_attach_blog', 1); variable_set('dbfm_attach_desc', 0); variable_set('dbfm_attach_page', 1); variable_set('dbfm_attach_story', 1); variable_set('dbfm_dbreset', 0); variable_set('dbfm_extensions_2', 'ai doc dot eps exe gif gxd gz html htm ind jpg jpeg pdf png ppt pps psd qxd swf tif tiff txt xls zip'); variable_set('dbfm_icon_dir', '/sites/all/modules/contrib/dbfm/image/icon'); variable_set('dbfm_node_grp', 'groupnode'); variable_set('dbfm_nozip', 'arc arj as b64 bin btoa bz cab cpt gz hqx iso lha lzh mim mme pak pf rar sea sit sitx tar tbz tbz2 tgz uu uue z zip zoo'); variable_set('dbfm_pages', 'node edit, node add'); variable_set('dbfm_root_dir', 'dbfm'); variable_set('dbfm_uploadsize_2', '1'); variable_set('dbfm_usersize_2', '10'); variable_set('file_directory_path', '../../bare-files'); variable_set('file_directory_temp', 'C:\\PortableApps\\xampp\\tmp'); variable_set('file_downloads', '2'); variable_set('filter_html_1', 1); variable_set('menu_primary_menu', 2); variable_set('menu_secondary_menu', 2); variable_set('node_options_casetracker_basic_case', array ( 0 => 'status', 1 => 'promote', )); variable_set('node_options_casetracker_basic_project', array ( 0 => 'status', )); variable_set('node_options_forum', array ( 0 => 'status', )); variable_set('node_options_page', array ( 0 => 'status', 1 => 'promote', )); variable_set('node_options_project', array ( 0 => 'status', )); variable_set('site_footer', ''); variable_set('site_frontpage', 'node'); variable_set('site_mail', 'info@localhost'); variable_set('site_mission', ''); variable_set('site_name', 'Bare Drupal'); variable_set('site_slogan', ''); system_theme_data(); db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = '%s'", 'garland'); variable_set('theme_default', 'garland'); variable_set('theme_settings', array ( 'toggle_node_info_page' => false, )); variable_set('upload_casetracker_basic_case', '1'); variable_set('upload_casetracker_basic_project', '1'); variable_set('upload_project', '1'); /************************************************************ * NODE TYPES * ************************************************************/ db_query("INSERT INTO {node_type} (type, name, module, description, help, has_title, title_label, has_body, body_label, min_word_count, custom, modified, locked, orig_type) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", 'page','Page','node','If you want to add a static page, like a contact page or an about page, use a page.','','1','Title','1','Body','0','1','1','0','page' ); db_query("INSERT INTO {node_type} (type, name, module, description, help, has_title, title_label, has_body, body_label, min_word_count, custom, modified, locked, orig_type) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", 'story','Story','node','Stories are articles in their simplest form: they have a title, a teaser and a body, but can be extended by other modules. The teaser is part of the body too. Stories may be used as a personal blog or for news articles.','','1','Title','1','Body','0','1','1','0','story' ); /************************************************************ * ROLES * ************************************************************/ $role_id['anonymous user'] = 1; $role_id['authenticated user'] = 2; /************************************************************ * USERS * ************************************************************/ $user = user_save(new stdClass(), array ( 'name' => 'admin', 'mail' => 'aenchevich@shaw.ca', 'mode' => '0', 'sort' => '0', 'threshold' => '0', 'theme' => '', 'signature' => '', 'created' => '1206740982', 'access' => '1206917806', 'login' => '1206917018', 'status' => '1', 'timezone' => '-28800', 'language' => '', 'picture' => '', 'init' => 'aenchevich@shaw.ca', 'data' => 'a:0:{}', )); db_query("UPDATE {users} SET pass='%s' WHERE uid=%d", '21232f297a57a5a743894a0e4a801fc3', $user->uid); $user_id['admin'] = $user->uid; $user = user_save(new stdClass(), array ( 'name' => 'user', 'mail' => 'user@localhost', 'mode' => '0', 'sort' => '0', 'threshold' => '0', 'theme' => '', 'signature' => '', 'created' => '1206914670', 'access' => '1206914670', 'login' => '0', 'status' => '1', 'timezone' => NULL, 'language' => '', 'picture' => '', 'init' => 'user@localhost', 'data' => 'a:0:{}', )); db_query("UPDATE {users} SET pass='%s' WHERE uid=%d", 'ee11cbb19052e40b07aac0ca060c23ee', $user->uid); $user_id['user'] = $user->uid; /************************************************************ * USERS <=> ROLES MAPPING * ************************************************************/ /************************************************************ * MENUS * ************************************************************/ while ( db_next_id('{menu}_mid') < 2) {} // first the primary links CaseTrackerNoProjects_profile_install_menu(2, array ( )); CaseTrackerNoProjects_profile_install_menu(0, array ( )); /************************************************************ * URL ALIASES * ************************************************************/ db_query( "INSERT INTO {url_alias} (src,dst) VALUES ('%s','%s')", 'node/1','Default-Project' ); /************************************************************ * BLOCKS * ************************************************************/ db_query( "INSERT INTO {blocks} (module,delta,theme,status,weight,region,custom,throttle,visibility,pages,title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, '%s', '%s')", 'user', '0', 'garland', '1', '0', 'left', '0', '0', '0', '', '' ); db_query( "INSERT INTO {blocks} (module,delta,theme,status,weight,region,custom,throttle,visibility,pages,title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, '%s', '%s')", 'user', '1', 'garland', '1', '0', 'left', '0', '0', '0', '', '' ); db_query( "INSERT INTO {blocks} (module,delta,theme,status,weight,region,custom,throttle,visibility,pages,title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, '%s', '%s')", 'user', '0', 'garland', '1', '0', 'left', '0', '0', '0', '', '' ); db_query( "INSERT INTO {blocks} (module,delta,theme,status,weight,region,custom,throttle,visibility,pages,title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, '%s', '%s')", 'user', '1', 'garland', '1', '0', 'left', '0', '0', '0', '', '' ); /************************************************************ * EXPORTING NODES * ************************************************************/ // exporting nodes of type: Page db_query( "INSERT INTO {node} (nid,vid,type,title,uid,status,created,changed,comment,promote,moderate,sticky) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')", '1','1','page','Bare!','1','1','1206741110','1206741110','0','1','0','0' ); db_query( "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')", '1','1','1','Bare!','A bare Drupal site for testing purposes.','A bare Drupal site for testing purposes.','','1206741110','1' ); // exporting nodes of type: Story system_initialize_theme_blocks('garland'); return; } function CaseTrackerNoProjects_profile_install_menu($pid, $menu) { foreach ( $menu as $item) { $mid = db_next_id('{menu}_mid'); db_query("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (%d,%d,'%s','%s','%s', %d, %d)", $mid, $pid, $item['path'], $item['title'], $item['description'], $item['weight'], $item['type']); CaseTrackerNoProjects_profile_install_menu($mid, $item['children']); } } ?>