Skip to content
Open
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
6 changes: 3 additions & 3 deletions apigee_m10n.install
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use Drupal\user\Entity\Role;
function apigee_m10n_requirements($phase) {
$requirements = [];
// If monetization is disabled after module has been installed, show error on status page.
if ($phase === 'runtime') {
if ($phase == 'runtime') {
try {
/** @var \Drupal\apigee_m10n\MonetizationInterface $monetization */
$monetization = Drupal::service('apigee_m10n.monetization');
Expand Down Expand Up @@ -64,8 +64,8 @@ function apigee_m10n_requirements($phase) {
}

// Should not be able to install if organization is not monetized.
if ($phase === 'install') {
$message = t("Apigee Monetization module functionality is not available for the organization used.");
if ($phase == 'install') {
$message = t("Monetization is not enabled for your Apigee Edge organization.");
$monetized = TRUE;
if (\Drupal::moduleHandler()->moduleExists('apigee_edge')) {
try {
Expand Down
Loading