You are here

public static function ConfigHandler::isExpirable in Node expire 7.2

Returns TRUE for node types that have the Node expire feature enabled.

File

src/Module/Config/ConfigHandler.php, line 26
ConfigHandler class.

Class

ConfigHandler
ConfigHandler class.

Namespace

Drupal\node_expire\Module\Config

Code

public static function isExpirable($node_type) {
  $ntypes = variable_get('node_expire_ntypes', array());
  if (!isset($ntypes[$node_type])) {
    return FALSE;
  }

  // TODO: WARNING | Unused variable $ntype.
  if (!($ntype = $ntypes[$node_type])) {
    return FALSE;
  }
  return TRUE;
}