atrblacklist_form_atr_form_profile_alter

Versions
6.1
atrblacklist_form_atr_form_profile_alter(&$form, &$form_state)

Implementation of hook_form_FORM_ID_alter().

Code

atr/modules/atrblacklist/atrblacklist.module, line 65

<?php
function atrblacklist_form_atr_form_profile_alter(&$form, &$form_state) {
  $profile = $form['profile']['#value'];

  $form['#submit'][] = 'atrblacklist_atr_form_profile_submit';
  $keywords = array();
  $result = db_query("SELECT keyword, comment FROM {atrblacklist_keyword} WHERE pid = %d", $profile->pid);
  while ($keyword = db_fetch_object($result)) {
    $keywords[] = $keyword;
  }
  $form['blacklist']['settings']['blacklist_keywords'] = array(
    '#type' => 'atrblacklist_keywords',
    '#description' => t('Any words or phrases that should not exist in the texts with additional comments, i.e. possible improvements.'),
    '#default_value' => $keywords,
  );
  $form['blacklist']['settings']['blacklist_update'] = array(
    '#type' => 'submit',
    '#value' => t('Update keywords'),
  );
}
?>