Skip to content

Commit

Permalink
Merge pull request #209 from goalgorilla/feature/2834600
Browse files Browse the repository at this point in the history
Issue #2834600 - Touch-ups demo module
  • Loading branch information
jaapjan committed Dec 12, 2016
2 parents 6d41fdb + fa8cb84 commit 1b3a73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions modules/custom/social_demo/social_demo.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ function drush_social_demo_add() {
foreach ($content_types as $key => $type) {
$num_created = 0;
// Create an instance of the necessary class.
$className = "\Drupal\social_demo\Content\SocialDemo" . ucfirst($type);
$className = "\\Drupal\\social_demo\\Content\\SocialDemo" . ucfirst($type);

if (class_exists($className)) {
$container = \Drupal::getContainer();
$class = $className::create($container);
$num_created = $class->createContent();
}

drush_print($num_created . " " . $type . " created");
drush_print("$num_created $type created");
}

}
Expand All @@ -64,7 +64,7 @@ function drush_social_demo_remove() {

foreach ($content_types as $key => $type) {
// Create an instance of the necessary class.
$className = "\Drupal\social_demo\Content\SocialDemo" . ucfirst($type);
$className = "\\Drupal\\social_demo\\Content\\SocialDemo" . ucfirst($type);

if (class_exists($className)) {
$container = \Drupal::getContainer();
Expand Down
6 changes: 0 additions & 6 deletions modules/custom/social_demo/social_demo.module

This file was deleted.

0 comments on commit 1b3a73c

Please sign in to comment.