You are here

public static function ActionsHelper::filterForRules in Node expire 7.2

Converts Action type RULES_EVENT to NONE if Rules module is not installed.

2 calls to ActionsHelper::filterForRules()
FormHookHandler::getActionType in src/Module/Hook/FormHookHandler.php
Returns Action Type for particular Node Type.
FormHookHelper::doFormNodeTypeFormAlterSubmit in src/Module/Hook/FormHookHelper.php
Implements hook_form_alter().

File

src/Module/CommonExpire/Actions/ActionsHelper.php, line 48
ActionsHelper class.

Class

ActionsHelper
ActionsHelper class.

Namespace

Drupal\node_expire\Module\CommonExpire\Actions

Code

public static function filterForRules($in) {
  $out = $in;
  if ($out == ActionTypeEnum::RULES_EVENT) {
    if (!module_exists('rules')) {
      $out = ActionTypeEnum::NONE;
    }
  }
  return $out;
}