/[drupal]/contributions/profiles/drupalhe/drupalhe.profile
ViewVC logotype

Contents of /contributions/profiles/drupalhe/drupalhe.profile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Mar 10 18:12:27 2007 UTC (2 years, 8 months ago) by yhager
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
changed profile name to match directory name - drupalhe
1 <?php
2 // $Id: hebrew.profile,v 1.1 2007/03/10 16:22:46 yhager Exp $
3
4 /* Hebrew Drupal installation profile */
5
6 /* Written by Yuval Hager <yuval@avramzon.net>, Feb 2007
7 * Work sponsored by Linnovate Ltd. <info@linnovate.net>
8 *
9 * Licensed under GPL V.2
10 */
11
12 /**
13 * Return an array of the modules to be enabled when this profile is installed.
14 *
15 * @return
16 * An array of modules to be enabled.
17 */
18 function drupalhe_profile_modules() {
19 return array('block', 'color', 'comment', 'filter', 'help', 'menu', 'node', 'system', 'taxonomy', 'user', 'watchdog', 'locale', 'autolocale');
20 }
21
22 /**
23 * Return a description of the profile for the initial installation screen.
24 *
25 * @return
26 * An array with keys 'name' and 'description' describing this profile.
27 */
28 function drupalhe_profile_details() {
29 return array(
30 'name' => 'דרופל עברי',
31 'description' => 'בחר תצורה זו כדי להתקין את דרופל בצורה המותאמת ביותר עבור אתר עברי'
32 );
33 }
34
35 /**
36 * Uses functionality in autolocale.install to import PO files
37 */
38 function drupalhe_install() {
39 _autolocale_install_po_files();
40 }
41
42 /**
43 * Perform any final installation tasks for this profile.
44 *
45 * @return
46 * An optional HTML string to display to the user on the final installation
47 * screen.
48 */
49 function drupalhe_profile_final() {
50 // Insert default user-defined node types into the database.
51 $common = array(
52 'module' => 'node',
53 'custom' => TRUE,
54 'modified' => TRUE,
55 'locked' => FALSE,
56 'has_body' => TRUE,
57 'body_label' => st('Body'),
58 'has_title' => TRUE,
59 'title_label' => st('Title'),
60 );
61 $types = array(
62 array_merge(
63 array(
64 'type' => 'page',
65 'name' => st('Page'),
66 'description' => st('If you want to add a static page, like a contact page or an about page, use a page.')
67 ),
68 $common
69 ),
70 array_merge(
71 array(
72 'type' => 'story',
73 'name' => st('Story'),
74 'description' => st('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.')
75 ),
76 $common
77 ),
78 );
79
80 foreach ($types as $type) {
81 $type = (object) _node_type_set_defaults($type);
82 node_type_save($type);
83 }
84
85 // Default page to not be promoted and have comments disabled.
86 variable_set('node_options_page', array('status'));
87 variable_set('comment_page', COMMENT_NODE_DISABLED);
88
89 // Don't display date and author information for page nodes by default.
90 $theme_settings = variable_get('theme_settings', array());
91 $theme_settings['toggle_node_info_page'] = FALSE;
92 variable_set('theme_settings', $theme_settings);
93
94 // Mimic system_themes_submit
95 system_theme_data(); /* collect available themes */
96 db_query("UPDATE {system} SET status = 0 WHERE type = 'theme'");
97 $themes = array('garland','garlandrtl');
98 foreach ($themes as $theme) {
99 system_initialize_theme_blocks($theme);
100 db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = '%s'", $theme);
101 }
102 variable_set('theme_default','garlandrtl');
103
104 /* Set default site name */
105 variable_set('site_name', 'דרופל');
106 }

  ViewVC Help
Powered by ViewVC 1.1.2