You are here

function insight_admin_alerts_settings_seo_fields in Insight 7

File

./insight.admin.inc, line 138
Admin page callback for the insight module.

Code

function insight_admin_alerts_settings_seo_fields($settings) {
  $form['minscore'] = array(
    '#type' => 'textfield',
    '#title' => t('Minimum score threshold'),
    '#description' => t('Triggers an alert if SEO score is below the given threshold. Set to 0 to disable.'),
    '#size' => 4,
    '#field_suffix' => '% (0-100)',
    '#default_value' => isset($settings['minscore']) ? $settings['minscore'] : 50,
  );
  return $form;
}