You are here

function seo_checker_get_rule_threshold in SEO Compliance Checker 6.2

Same name and namespace in other branches
  1. 6 seo_checker.module \seo_checker_get_rule_threshold()

Get the threshold of a rule. Pass the rule array and the ID.

2 calls to seo_checker_get_rule_threshold()
seo_checker_perform_checks in ./seo_checker.module
This is the main seo checker function. It checks the submitted node by applying all the rules and includes the summary to the node form.
seo_checker_settings in inc/seo_checker.admin.inc
Builds the settings form for the SEO checker using system_settings_form()

File

./seo_checker.module, line 67

Code

function seo_checker_get_rule_threshold($rule, $rid) {
  $threshold = variable_get('seo_threshold_' . $rid, !empty($rule['default threshold']) ? $rule['default threshold'] : array(
    1000,
    100,
  ));
  if (!is_array($threshold)) {
    $threshold = array(
      $threshold,
      100,
    );
  }
  return $threshold;
}