Skip to content

Commit

Permalink
[Unallocated#247] Removed some setup code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nhepner1 committed Jan 22, 2015
1 parent da4221f commit baee292
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions docroot/profiles/unallocated/unallocated.install
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@ function unallocated_install() {
// Setting the media_gallery module creates a conflict with taxonomy. We'll enable it here instead of as a dependency.
module_enable(array('media_gallery'));

// Set up login destination
$login_destination = array(
'triggers' => array(array('login' => 'login', 'logout' => 'logout')),
'roles' => array(array(3=>0)),
'pages_type' => 0,
'pages' => '',
'destination_type' => 0,
'destination' => "<front>",
'weight' => 0,
);
$login_destination['triggers'] = serialize($login_destination['triggers']);
$login_destination['roles'] = serialize($login_destination['roles']);

drupal_write_record('login_destination', $login_destination);
}

/**
Expand Down Expand Up @@ -102,33 +88,3 @@ function unallocated_update_7001() {

module_enable($modules);
}

/**
* 7024 - Set up frontpage settings.
*/
function unallocated_update_7024() {
// Set front-page settings.
db_merge('front_page')
->key(array('rid' => 1)) // The role ID for anonymous user.
->fields(array(
'mode' => '',
'data' => '',
'filter_format' => '',
))
->execute();

db_merge('front_page')
->key(array('rid' => 2)) // The role ID for the authenticated user
->fields(array(
'mode' => 'alias',
'data' => '',
'filter_format' => '',
))
->execute();

$modules = array(
'uas_front_page_settings',
);

module_enable($modules);
}

0 comments on commit baee292

Please sign in to comment.