2009-08-21 07:50:08 +00:00
|
|
|
<?php
|
2012-02-29 21:19:26 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2012-10-05 16:11:15 +00:00
|
|
|
* Install, update and uninstall functions for the standard installation profile.
|
2012-02-29 21:19:26 +00:00
|
|
|
*/
|
2009-08-21 07:50:08 +00:00
|
|
|
|
|
|
|
/**
|
2009-12-04 16:49:48 +00:00
|
|
|
* Implements hook_install().
|
2009-08-21 07:50:08 +00:00
|
|
|
*
|
|
|
|
* Perform actions to set up the site for this profile.
|
2012-02-29 21:19:26 +00:00
|
|
|
*
|
|
|
|
* @see system_install()
|
2009-08-21 07:50:08 +00:00
|
|
|
*/
|
2010-01-04 23:08:34 +00:00
|
|
|
function standard_install() {
|
2009-12-03 15:33:42 +00:00
|
|
|
// Add text formats.
|
|
|
|
$filtered_html_format = array(
|
2010-10-20 01:15:58 +00:00
|
|
|
'format' => 'filtered_html',
|
2009-12-03 15:33:42 +00:00
|
|
|
'name' => 'Filtered HTML',
|
|
|
|
'weight' => 0,
|
|
|
|
'filters' => array(
|
|
|
|
// URL filter.
|
|
|
|
'filter_url' => array(
|
|
|
|
'weight' => 0,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
// HTML filter.
|
|
|
|
'filter_html' => array(
|
|
|
|
'weight' => 1,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
// Line break filter.
|
|
|
|
'filter_autop' => array(
|
|
|
|
'weight' => 2,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
// HTML corrector filter.
|
|
|
|
'filter_htmlcorrector' => array(
|
|
|
|
'weight' => 10,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$filtered_html_format = (object) $filtered_html_format;
|
|
|
|
filter_format_save($filtered_html_format);
|
|
|
|
|
|
|
|
$full_html_format = array(
|
2010-10-20 01:15:58 +00:00
|
|
|
'format' => 'full_html',
|
2009-12-03 15:33:42 +00:00
|
|
|
'name' => 'Full HTML',
|
|
|
|
'weight' => 1,
|
|
|
|
'filters' => array(
|
|
|
|
// URL filter.
|
|
|
|
'filter_url' => array(
|
|
|
|
'weight' => 0,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
// Line break filter.
|
|
|
|
'filter_autop' => array(
|
|
|
|
'weight' => 1,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
// HTML corrector filter.
|
|
|
|
'filter_htmlcorrector' => array(
|
|
|
|
'weight' => 10,
|
|
|
|
'status' => 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$full_html_format = (object) $full_html_format;
|
|
|
|
filter_format_save($full_html_format);
|
|
|
|
|
2011-12-13 03:29:45 +00:00
|
|
|
// Enable Bartik theme and set it as default theme instead of Stark.
|
|
|
|
// @see system_install()
|
|
|
|
$default_theme = 'bartik';
|
|
|
|
variable_set('theme_default', $default_theme);
|
|
|
|
theme_enable(array($default_theme));
|
|
|
|
theme_disable(array('stark'));
|
|
|
|
|
2009-08-21 07:50:08 +00:00
|
|
|
// Enable some standard blocks.
|
2010-07-08 03:41:27 +00:00
|
|
|
$admin_theme = 'seven';
|
2011-12-31 23:54:33 +00:00
|
|
|
$blocks = array(
|
2009-08-21 07:50:08 +00:00
|
|
|
array(
|
|
|
|
'module' => 'system',
|
|
|
|
'delta' => 'main',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'content',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
2009-09-21 06:36:54 +00:00
|
|
|
array(
|
|
|
|
'module' => 'search',
|
|
|
|
'delta' => 'form',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-09-21 06:36:54 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => -1,
|
|
|
|
'region' => 'sidebar_first',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
2009-08-21 07:50:08 +00:00
|
|
|
array(
|
|
|
|
'module' => 'user',
|
|
|
|
'delta' => 'login',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'sidebar_first',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'system',
|
2012-10-25 15:53:18 +00:00
|
|
|
'delta' => 'tools',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'sidebar_first',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'system',
|
|
|
|
'delta' => 'powered-by',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 10,
|
|
|
|
'region' => 'footer',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'system',
|
|
|
|
'delta' => 'help',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $default_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'help',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'system',
|
|
|
|
'delta' => 'main',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $admin_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'content',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'system',
|
|
|
|
'delta' => 'help',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $admin_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 0,
|
|
|
|
'region' => 'help',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'module' => 'user',
|
|
|
|
'delta' => 'login',
|
2010-07-08 03:41:27 +00:00
|
|
|
'theme' => $admin_theme,
|
2009-08-21 07:50:08 +00:00
|
|
|
'status' => 1,
|
|
|
|
'weight' => 10,
|
|
|
|
'region' => 'content',
|
|
|
|
'pages' => '',
|
|
|
|
'cache' => -1,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$query = db_insert('block')->fields(array('module', 'delta', 'theme', 'status', 'weight', 'region', 'pages', 'cache'));
|
2011-12-31 23:54:33 +00:00
|
|
|
foreach ($blocks as $block) {
|
|
|
|
$query->values($block);
|
2009-08-21 07:50:08 +00:00
|
|
|
}
|
2009-09-22 07:44:58 +00:00
|
|
|
$query->execute();
|
2009-08-21 07:50:08 +00:00
|
|
|
|
2012-01-08 07:14:15 +00:00
|
|
|
// Set front page to "node".
|
2012-07-02 17:20:33 +00:00
|
|
|
config('system.site')->set('page.front', 'node')->save();
|
2012-01-08 07:14:15 +00:00
|
|
|
|
2010-03-11 22:48:34 +00:00
|
|
|
// Insert default pre-defined node types into the database. For a complete
|
2009-08-21 07:50:08 +00:00
|
|
|
// list of available node type attributes, refer to the node type API
|
|
|
|
// documentation at: http://api.drupal.org/api/HEAD/function/hook_node_info.
|
|
|
|
$types = array(
|
|
|
|
array(
|
|
|
|
'type' => 'page',
|
2010-01-10 22:56:51 +00:00
|
|
|
'name' => st('Basic page'),
|
2009-08-21 07:50:08 +00:00
|
|
|
'base' => 'node_content',
|
2010-01-10 22:56:51 +00:00
|
|
|
'description' => st("Use <em>basic pages</em> for your static content, such as an 'About us' page."),
|
2009-08-21 07:50:08 +00:00
|
|
|
'custom' => 1,
|
|
|
|
'modified' => 1,
|
|
|
|
'locked' => 0,
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'article',
|
|
|
|
'name' => st('Article'),
|
|
|
|
'base' => 'node_content',
|
2010-04-22 09:55:32 +00:00
|
|
|
'description' => st('Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'),
|
2009-08-21 07:50:08 +00:00
|
|
|
'custom' => 1,
|
|
|
|
'modified' => 1,
|
|
|
|
'locked' => 0,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach ($types as $type) {
|
|
|
|
$type = node_type_set_defaults($type);
|
|
|
|
node_type_save($type);
|
2010-05-05 06:55:25 +00:00
|
|
|
node_add_body_field($type);
|
2009-08-21 07:50:08 +00:00
|
|
|
}
|
|
|
|
|
2010-03-11 22:48:34 +00:00
|
|
|
// Insert default pre-defined RDF mapping into the database.
|
2009-10-19 18:28:16 +00:00
|
|
|
$rdf_mappings = array(
|
|
|
|
array(
|
|
|
|
'type' => 'node',
|
|
|
|
'bundle' => 'page',
|
|
|
|
'mapping' => array(
|
|
|
|
'rdftype' => array('foaf:Document'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'node',
|
|
|
|
'bundle' => 'article',
|
|
|
|
'mapping' => array(
|
2010-01-13 13:59:06 +00:00
|
|
|
'field_image' => array(
|
2010-07-23 04:39:32 +00:00
|
|
|
'predicates' => array('og:image', 'rdfs:seeAlso'),
|
2010-01-13 13:59:06 +00:00
|
|
|
'type' => 'rel',
|
|
|
|
),
|
2010-04-17 12:34:02 +00:00
|
|
|
'field_tags' => array(
|
2010-01-15 10:09:03 +00:00
|
|
|
'predicates' => array('dc:subject'),
|
2010-01-13 13:59:06 +00:00
|
|
|
'type' => 'rel',
|
|
|
|
),
|
2009-10-19 18:28:16 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
foreach ($rdf_mappings as $rdf_mapping) {
|
2009-10-20 17:33:43 +00:00
|
|
|
rdf_mapping_save($rdf_mapping);
|
2009-10-19 18:28:16 +00:00
|
|
|
}
|
|
|
|
|
2010-01-10 22:56:51 +00:00
|
|
|
// Default "Basic page" to not be promoted and have comments disabled.
|
2009-08-21 07:50:08 +00:00
|
|
|
variable_set('node_options_page', array('status'));
|
|
|
|
variable_set('comment_page', COMMENT_NODE_HIDDEN);
|
|
|
|
|
2010-01-10 22:56:51 +00:00
|
|
|
// Don't display date and author information for "Basic page" nodes by default.
|
2009-08-21 07:50:08 +00:00
|
|
|
variable_set('node_submitted_page', FALSE);
|
|
|
|
|
|
|
|
// Enable user picture support and set the default to a square thumbnail option.
|
|
|
|
variable_set('user_pictures', '1');
|
|
|
|
variable_set('user_picture_dimensions', '1024x1024');
|
|
|
|
variable_set('user_picture_file_size', '800');
|
|
|
|
variable_set('user_picture_style', 'thumbnail');
|
|
|
|
|
2010-05-27 12:29:39 +00:00
|
|
|
// Allow visitor account creation with administrative approval.
|
2012-08-26 21:15:58 +00:00
|
|
|
$user_settings = config('user.settings');
|
|
|
|
$user_settings->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save();
|
2010-05-27 12:29:39 +00:00
|
|
|
|
2009-08-21 07:50:08 +00:00
|
|
|
// Create a default vocabulary named "Tags", enabled for the 'article' content type.
|
2009-10-08 07:58:47 +00:00
|
|
|
$description = st('Use tags to group articles on similar topics into categories.');
|
|
|
|
$help = st('Enter a comma-separated list of words to describe your content.');
|
2012-04-02 02:55:32 +00:00
|
|
|
$vocabulary = entity_create('taxonomy_vocabulary', array(
|
2011-04-21 02:26:47 +00:00
|
|
|
'name' => st('Tags'),
|
2009-10-08 07:58:47 +00:00
|
|
|
'description' => $description,
|
|
|
|
'machine_name' => 'tags',
|
2012-03-02 18:46:16 +00:00
|
|
|
'langcode' => language_default()->langcode,
|
2009-10-08 07:58:47 +00:00
|
|
|
'help' => $help,
|
2012-04-02 02:55:32 +00:00
|
|
|
));
|
2009-09-22 07:44:58 +00:00
|
|
|
taxonomy_vocabulary_save($vocabulary);
|
2010-02-11 03:29:22 +00:00
|
|
|
|
|
|
|
$field = array(
|
2010-04-17 12:34:02 +00:00
|
|
|
'field_name' => 'field_' . $vocabulary->machine_name,
|
2010-02-11 03:29:22 +00:00
|
|
|
'type' => 'taxonomy_term_reference',
|
|
|
|
// Set cardinality to unlimited for tagging.
|
|
|
|
'cardinality' => FIELD_CARDINALITY_UNLIMITED,
|
|
|
|
'settings' => array(
|
|
|
|
'allowed_values' => array(
|
|
|
|
array(
|
2010-10-01 01:37:13 +00:00
|
|
|
'vocabulary' => $vocabulary->machine_name,
|
2010-02-11 03:29:22 +00:00
|
|
|
'parent' => 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
field_create_field($field);
|
|
|
|
|
2009-10-08 07:58:47 +00:00
|
|
|
$instance = array(
|
2010-04-17 12:34:02 +00:00
|
|
|
'field_name' => 'field_' . $vocabulary->machine_name,
|
2010-03-27 05:52:50 +00:00
|
|
|
'entity_type' => 'node',
|
2011-04-21 02:26:47 +00:00
|
|
|
'label' => 'Tags',
|
2009-10-08 07:58:47 +00:00
|
|
|
'bundle' => 'article',
|
|
|
|
'description' => $vocabulary->help,
|
|
|
|
'widget' => array(
|
|
|
|
'type' => 'taxonomy_autocomplete',
|
2010-09-30 01:06:09 +00:00
|
|
|
'weight' => -4,
|
2009-11-06 02:38:08 +00:00
|
|
|
),
|
2010-05-23 19:10:23 +00:00
|
|
|
'display' => array(
|
|
|
|
'default' => array(
|
|
|
|
'type' => 'taxonomy_term_reference_link',
|
|
|
|
'weight' => 10,
|
|
|
|
),
|
|
|
|
'teaser' => array(
|
|
|
|
'type' => 'taxonomy_term_reference_link',
|
|
|
|
'weight' => 10,
|
|
|
|
),
|
|
|
|
),
|
2009-11-06 02:38:08 +00:00
|
|
|
);
|
|
|
|
field_create_instance($instance);
|
|
|
|
|
|
|
|
|
|
|
|
// Create an image field named "Image", enabled for the 'article' content type.
|
|
|
|
// Many of the following values will be defaulted, they're included here as an illustrative examples.
|
2012-05-04 20:07:43 +00:00
|
|
|
// See http://api.drupal.org/api/function/field_create_field/8
|
2009-11-06 02:38:08 +00:00
|
|
|
|
|
|
|
$field = array(
|
|
|
|
'field_name' => 'field_image',
|
|
|
|
'type' => 'image',
|
|
|
|
'cardinality' => 1,
|
|
|
|
'locked' => FALSE,
|
|
|
|
'indexes' => array('fid' => array('fid')),
|
|
|
|
'settings' => array(
|
|
|
|
'uri_scheme' => 'public',
|
|
|
|
'default_image' => FALSE,
|
|
|
|
),
|
|
|
|
'storage' => array(
|
|
|
|
'type' => 'field_sql_storage',
|
|
|
|
'settings' => array(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
field_create_field($field);
|
|
|
|
|
|
|
|
|
|
|
|
// Many of the following values will be defaulted, they're included here as an illustrative examples.
|
2012-05-04 20:07:43 +00:00
|
|
|
// See http://api.drupal.org/api/function/field_create_instance/8
|
2009-11-06 02:38:08 +00:00
|
|
|
$instance = array(
|
|
|
|
'field_name' => 'field_image',
|
2010-03-27 05:52:50 +00:00
|
|
|
'entity_type' => 'node',
|
2009-11-06 02:38:08 +00:00
|
|
|
'label' => 'Image',
|
|
|
|
'bundle' => 'article',
|
2010-09-07 18:01:32 +00:00
|
|
|
'description' => st('Upload an image to go with this article.'),
|
2009-11-06 02:38:08 +00:00
|
|
|
'required' => FALSE,
|
|
|
|
|
|
|
|
'settings' => array(
|
|
|
|
'file_directory' => 'field/image',
|
|
|
|
'file_extensions' => 'png gif jpg jpeg',
|
|
|
|
'max_filesize' => '',
|
|
|
|
'max_resolution' => '',
|
|
|
|
'min_resolution' => '',
|
|
|
|
'alt_field' => TRUE,
|
|
|
|
'title_field' => '',
|
|
|
|
),
|
|
|
|
|
|
|
|
'widget' => array(
|
|
|
|
'type' => 'image_image',
|
|
|
|
'settings' => array(
|
|
|
|
'progress_indicator' => 'throbber',
|
|
|
|
'preview_image_style' => 'thumbnail',
|
|
|
|
),
|
|
|
|
'weight' => -1,
|
|
|
|
),
|
|
|
|
|
|
|
|
'display' => array(
|
2010-05-23 19:10:23 +00:00
|
|
|
'default' => array(
|
2009-11-06 02:38:08 +00:00
|
|
|
'label' => 'hidden',
|
2010-08-09 19:55:57 +00:00
|
|
|
'type' => 'image',
|
|
|
|
'settings' => array('image_style' => 'large', 'image_link' => ''),
|
2009-11-06 02:38:08 +00:00
|
|
|
'weight' => -1,
|
|
|
|
),
|
|
|
|
'teaser' => array(
|
|
|
|
'label' => 'hidden',
|
2010-08-09 19:55:57 +00:00
|
|
|
'type' => 'image',
|
|
|
|
'settings' => array('image_style' => 'medium', 'image_link' => 'content'),
|
2009-11-06 02:38:08 +00:00
|
|
|
'weight' => -1,
|
|
|
|
),
|
2009-10-08 07:58:47 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
field_create_instance($instance);
|
2009-08-21 07:50:08 +00:00
|
|
|
|
2009-08-27 20:25:29 +00:00
|
|
|
// Enable default permissions for system roles.
|
2009-12-03 15:33:42 +00:00
|
|
|
$filtered_html_permission = filter_permission_name($filtered_html_format);
|
2010-07-20 02:05:13 +00:00
|
|
|
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content', 'access comments', $filtered_html_permission));
|
2010-10-05 06:17:29 +00:00
|
|
|
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content', 'access comments', 'post comments', 'skip comment approval', $filtered_html_permission));
|
2009-08-27 20:25:29 +00:00
|
|
|
|
|
|
|
// Create a default role for site administrators, with all available permissions assigned.
|
|
|
|
$admin_role = new stdClass();
|
2012-06-05 12:19:14 +00:00
|
|
|
$admin_role->rid = 'administrator';
|
|
|
|
$admin_role->name = 'Administrator';
|
2010-03-24 07:34:10 +00:00
|
|
|
$admin_role->weight = 2;
|
2009-08-27 20:25:29 +00:00
|
|
|
user_role_save($admin_role);
|
2009-09-19 10:54:36 +00:00
|
|
|
user_role_grant_permissions($admin_role->rid, array_keys(module_invoke_all('permission')));
|
2009-08-21 07:50:08 +00:00
|
|
|
// Set this as the administrator role.
|
2012-08-26 21:15:58 +00:00
|
|
|
$user_settings->set('admin_role', $admin_role->rid)->save();
|
2009-08-21 07:50:08 +00:00
|
|
|
|
2010-05-16 10:41:04 +00:00
|
|
|
// Assign user 1 the "administrator" role.
|
|
|
|
db_insert('users_roles')
|
|
|
|
->fields(array('uid' => 1, 'rid' => $admin_role->rid))
|
|
|
|
->execute();
|
|
|
|
|
2010-07-22 23:39:14 +00:00
|
|
|
// Create a Home link in the main menu.
|
|
|
|
$item = array(
|
2011-01-04 18:24:24 +00:00
|
|
|
'link_title' => st('Home'),
|
2010-07-22 23:39:14 +00:00
|
|
|
'link_path' => '<front>',
|
2012-10-25 15:53:18 +00:00
|
|
|
'menu_name' => 'main',
|
2010-07-22 23:39:14 +00:00
|
|
|
);
|
|
|
|
menu_link_save($item);
|
|
|
|
|
2012-09-05 03:13:17 +00:00
|
|
|
// Populate the default shortcut set.
|
|
|
|
$shortcut_set = shortcut_set_load(SHORTCUT_DEFAULT_SET_NAME);
|
|
|
|
$shortcut_set->links[] = array(
|
|
|
|
'link_path' => 'node/add',
|
|
|
|
'link_title' => st('Add content'),
|
|
|
|
'weight' => -20,
|
|
|
|
);
|
|
|
|
$shortcut_set->links[] = array(
|
|
|
|
'link_path' => 'admin/content',
|
|
|
|
'link_title' => st('Find content'),
|
|
|
|
'weight' => -19,
|
|
|
|
);
|
|
|
|
shortcut_set_save($shortcut_set);
|
|
|
|
|
2009-08-21 07:50:08 +00:00
|
|
|
// Update the menu router information.
|
2012-05-03 15:09:39 +00:00
|
|
|
menu_router_rebuild();
|
2009-08-21 07:50:08 +00:00
|
|
|
|
|
|
|
// Enable the admin theme.
|
2012-09-18 14:04:16 +00:00
|
|
|
theme_enable(array('seven'));
|
2009-08-21 07:50:08 +00:00
|
|
|
variable_set('admin_theme', 'seven');
|
|
|
|
variable_set('node_admin_theme', '1');
|
|
|
|
}
|