forked from pressflow/7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving pantheon.module to pantheon_api.module
Moving ygg-config related install instructions to modulespace Adding pantheon_login module
- Loading branch information
Josh Koenig
committed
Jun 20, 2011
1 parent
61d4cb1
commit a9d14f3
Showing
11 changed files
with
224 additions
and
195 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
6 changes: 3 additions & 3 deletions
6
modules/pantheon/pantheon.info → ...s/pantheon/pantheon_api/pantheon_api.info
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
; $Id$ | ||
name = Pantheon Platform | ||
name = Pantheon Platform API | ||
description = Integration with the Pantheon Platform | ||
package = Pantheon | ||
version = 1.0 | ||
core = 7.x | ||
core = 7.x | ||
php = 5.2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
// $Id$ | ||
/** | ||
* @file pantheon.install | ||
* TODO: Enter file description here. | ||
*/ | ||
|
||
/** | ||
* Implementation of hook_install(). | ||
*/ | ||
function pantheon_api_install() { | ||
include_once('pantheon_api.inc'); | ||
pantheon_api_ygg_event_post('self', array('Drupal' => 'New Site Installed!')); | ||
} | ||
|
||
/** | ||
* Implementation of hook_enable(). | ||
*/ | ||
function pantheon_api_enable() { | ||
$config = pantheon_api_ygg_config_get(); | ||
$solr_server = array( | ||
'server_id' => '', | ||
'name' => '', | ||
'scheme' => 'http', | ||
'host' => '', | ||
'port' => '', | ||
'path' => '', | ||
); | ||
|
||
// Remove existing apachesolr servers | ||
db_delete('apachesolr_server')->execute(); | ||
|
||
// Create solr server entries for each environment. | ||
foreach ($config as $project => $data) { | ||
foreach ($data->environments as $env_name => $env) { | ||
$solr_server['server_id'] = $env->solr->apachesolr_default_server; | ||
$solr_server['name'] = ucwords("$project $env_name"); | ||
$solr_server['path'] = $env->solr->solr_path; | ||
$solr_server['host'] = $env->solr->solr_host; | ||
$solr_server['port'] = $env->solr->solr_port; | ||
db_insert('apachesolr_server')->fields($solr_server)->execute(); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Login integration for your site and the Pantheon control panel |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
; $Id$ | ||
name = Pantheon Login | ||
description = Allows users to log in as user #1 from their Pantheon Control Panel | ||
package = Pantheon | ||
dependencies[] = pantheon_api | ||
core = 7.x | ||
php = 5.2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Pantheon Login install functions. | ||
* | ||
* Placeholder. | ||
*/ |
Oops, something went wrong.