Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues/2 - edit filter-drupal.xml message #3

Merged
merged 3 commits into from
Dec 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions sitespinner.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function sitespinner_sitespinner($base, $destination) {
$drupal_root = $destination_site_alias_record['root'];
$parse_uri = explode('/', $destination_site_alias_record['uri']);
$site = end($parse_uri);
$multisite_root = $drupal_root . '/sites/' . str_replace('/', '.', $destination_site_alias_record['uri']);

// Determine domain type (path, domain, or subdomain).
$domain = 'path';
Expand Down Expand Up @@ -217,8 +218,13 @@ function sitespinner_sitespinner($base, $destination) {

}


sitespinner_print(dt("Site created. Test it at http://!uri\n", array('!uri' => $destination_site_alias_record['uri'])));
$msgs = array('');
$msgs[] = dt('!sitepath and its drupal database have been created.', array('!sitepath' => $multisite_root));
$msgs[] = '';
$msgs[] = dt('Be sure to edit the filter-drupal.xml file on the Fedora server to fully enable this site.');
$msgs[] = dt('Documentation: https://wiki.duraspace.org/pages/viewpage.action?pageId=69833569');
$msgs[] = '';
sitespinner_print($msgs);
return 0;
}

Expand Down Expand Up @@ -283,6 +289,13 @@ function sitespinner_sitespinner_delete($alias) {
else {
sitespinner_print(dt('Attempting to delete !symlink, but it does not exist. Skipping...', array('!symlink' => $symlink)) . "\n");
}
$msgs = array('');
$msgs[] = dt('!sitepath and its drupal database have been deleted.', array('!sitepath' => $multisite_root));
$msgs[] = '';
$msgs[] = dt('Be sure to edit the filter-drupal.xml file on the Fedora server to remove this site.');
$msgs[] = dt('Documentation: https://wiki.duraspace.org/pages/viewpage.action?pageId=69833569');
$msgs[] = '';
sitespinner_print($msgs);
}

// }}}
Expand Down