You are here

function node_accessibility_is_enabled in Node Accessibility 7

Returns TRUE if accessibility validation functionality is enabled.

Parameters

string $node_type: A node type string.

Return value

bool The return TRUE when accessibility is enabled for the given node type. Otherwise, FALSE is returned.

3 calls to node_accessibility_is_enabled()
node_accessibility_access_accessibility_tab in ./node_accessibility.module
Checks if user can access the accessibility tab.
node_accessibility_handler_link_validate_node::render_link in includes/node_accessibility_handler_link_validate_node.inc
node_accessibility_rules_condition_content_is_using_node_accessibility in ./node_accessibility.rules.inc
Condition: Check if the content is using accessibility validation.

File

./node_accessibility.module, line 748
Module file for the node accessibility project.

Code

function node_accessibility_is_enabled($node_type) {
  $node_type_settings = node_accessibility_load_node_type_settings();
  if (isset($node_type_settings[$node_type]) && $node_type_settings[$node_type] !== FALSE) {
    return TRUE;
  }
  return FALSE;
}