You are here

function _restrict_abusive_words_get_words_list in Restrict Abusive Words 7

Same name and namespace in other branches
  1. 8 restrict_abusive_words.module \_restrict_abusive_words_get_words_list()
  2. 7.2 restrict_abusive_words.module \_restrict_abusive_words_get_words_list()

Implement _restrict_abusive_words_get_words_list().

9 calls to _restrict_abusive_words_get_words_list()
restrict_abusive_words_admin_add_form_validate in ./restrict_abusive_words.admin.inc
Validate handler to add abusive words.
_restrict_abusive_words_comment_form_submit in ./restrict_abusive_words.module
Callback function to submit node comment form for abusive words.
_restrict_abusive_words_comment_form_validate in ./restrict_abusive_words.module
Callback function to validate node comment form for abusive words.
_restrict_abusive_words_node_form_submit in ./restrict_abusive_words.module
Implement _restrict_abusive_words_node_form_submit.
_restrict_abusive_words_node_form_validate in ./restrict_abusive_words.module
Callback function to validate node form for abusive words.

... See full list

File

./restrict_abusive_words.module, line 453
Restrict Abusive Words module.

Code

function _restrict_abusive_words_get_words_list() {
  $output = array();
  $results = db_query('Select * FROM {restrict_abusive_words}');
  if (count($results) > 0) {
    foreach ($results as $result) {
      $output[] = $result->words;
    }
    return $output;
  }
  return FALSE;
}