diff --git a/.travis.yml b/.travis.yml index 866c3ae..a2e8401 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,8 @@ php: env: matrix: - - DRUPAL_CORE=8.2.x - DRUPAL_CORE=8.3.x + - DRUPAL_CORE=8.4.x global: MODULE_NAME='message_subscribe' CODER_VERSION='8.2.*' @@ -72,7 +72,7 @@ before_script: script: # Coding standards. - - $HOME/.composer/vendor/bin/phpcs --report=full --standard=Drupal $TESTDIR + - $HOME/.composer/vendor/bin/phpcs --report=full --standard=Drupal --severity=error $TESTDIR # Run the PHPUnit tests which also include the kernel tests. - ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE_NAME # Run legacy simpletests. diff --git a/message_subscribe.info.yml b/message_subscribe.info.yml index 51a2074..fa13fcc 100644 --- a/message_subscribe.info.yml +++ b/message_subscribe.info.yml @@ -2,8 +2,6 @@ name: 'Message subscribe' description: 'Subscribe API for the Message and Message notify modules.' core: 8.x package: Message -php: 5.2.4 -project: message_subscribe dependencies: - flag - message diff --git a/message_subscribe_email/README.md b/message_subscribe_email/README.md index fb840e7..f643bdd 100644 --- a/message_subscribe_email/README.md +++ b/message_subscribe_email/README.md @@ -12,4 +12,4 @@ MAIN CONCEPTS 3) You can use message_subscribe_get_subscribers() to get the list of email subscribers. 4) Use message_subscribe_send_message() to handle emailing the list of - subscribers. \ No newline at end of file + subscribers. diff --git a/message_subscribe_email/config/optional/field.field.user.user.message_subscribe_email.yml b/message_subscribe_email/config/optional/field.field.user.user.message_subscribe_email.yml index e0362ad..74b65c3 100644 --- a/message_subscribe_email/config/optional/field.field.user.user.message_subscribe_email.yml +++ b/message_subscribe_email/config/optional/field.field.user.user.message_subscribe_email.yml @@ -21,4 +21,3 @@ settings: on_label: Email off_label: 'Don''t email' field_type: boolean - diff --git a/message_subscribe_email/config/optional/views.view.subscribe_node_email.yml b/message_subscribe_email/config/optional/views.view.subscribe_node_email.yml index 25848b1..345167a 100644 --- a/message_subscribe_email/config/optional/views.view.subscribe_node_email.yml +++ b/message_subscribe_email/config/optional/views.view.subscribe_node_email.yml @@ -361,4 +361,3 @@ display: - 'user.node_grants:view' - user.permissions tags: { } - diff --git a/message_subscribe_email/config/optional/views.view.subscribe_taxonomy_term_email.yml b/message_subscribe_email/config/optional/views.view.subscribe_taxonomy_term_email.yml index 9a9c669..3be04e6 100644 --- a/message_subscribe_email/config/optional/views.view.subscribe_taxonomy_term_email.yml +++ b/message_subscribe_email/config/optional/views.view.subscribe_taxonomy_term_email.yml @@ -333,4 +333,3 @@ display: - url.query_args - user.permissions tags: { } - diff --git a/message_subscribe_email/config/optional/views.view.subscribe_user_email.yml b/message_subscribe_email/config/optional/views.view.subscribe_user_email.yml index b792d13..1598039 100644 --- a/message_subscribe_email/config/optional/views.view.subscribe_user_email.yml +++ b/message_subscribe_email/config/optional/views.view.subscribe_user_email.yml @@ -341,4 +341,3 @@ display: - url.query_args - user.permissions tags: { } - diff --git a/message_subscribe_email/message_subscribe_email.info.yml b/message_subscribe_email/message_subscribe_email.info.yml index 5fecde4..0e40b69 100644 --- a/message_subscribe_email/message_subscribe_email.info.yml +++ b/message_subscribe_email/message_subscribe_email.info.yml @@ -1,6 +1,5 @@ name: 'Message subscribe email' core: 8.x -project: message_subscribe package: Message dependencies: - message_subscribe_ui diff --git a/message_subscribe_email/message_subscribe_email.install b/message_subscribe_email/message_subscribe_email.install index 557d2d5..fd0f0b6 100644 --- a/message_subscribe_email/message_subscribe_email.install +++ b/message_subscribe_email/message_subscribe_email.install @@ -2,11 +2,9 @@ /** * @file - * Install, update, and uninstall functions for the message_subscribe_email module. + * Install hooks for the message_subscribe_email module. */ -use Drupal\Core\Entity\Entity\EntityFormDisplay; - /** * Implements hook_install(). * @@ -48,23 +46,3 @@ function message_subscribe_email_install() { } } } - -/** - * Implements hook_uninstall(). - */ -function message_subscribe_email_uninstall() { - // Revert message to default values if they haven't been changed. - $variables = [ - 'message_subscribe_node' => 'subscribe_node_email:default', - 'message_subscribe_term' => 'subscribe_taxonomy_term_email:default', - 'message_subscribe_user' => 'subscribe_user_email:default', - // Revert OG in case it exists. - 'message_subscribe_og' => 'subscribe_node_email:default', - ]; - - foreach ($variables as $name => $value) { - // if (variable_get($name) == $value) { - // variable_del($name); - // } - } -} diff --git a/message_subscribe_email/message_subscribe_email.module b/message_subscribe_email/message_subscribe_email.module index b3e94a3..ea758d6 100644 --- a/message_subscribe_email/message_subscribe_email.module +++ b/message_subscribe_email/message_subscribe_email.module @@ -1,4 +1,5 @@