You are here

public static function Rules::canImport in Hook Update Deploy Tools 8

Same name and namespace in other branches
  1. 7 src/Rules.php \HookUpdateDeployTools\Rules::canImport()

Checks to see if rules in enabled and functions are available.

Return value

bool TRUE if enabled.

Overrides ImportInterface::canImport

1 call to Rules::canImport()
Rules::import in src/Rules.php
Imports rules using the rule_import module & template.

File

src/Rules.php, line 117

Class

Rules
Public method for importing Rules.

Namespace

HookUpdateDeployTools

Code

public static function canImport() {
  Check::canUse('rules');
  Check::canCall('rules_import');
  return TRUE;
}