/[drupal]/contributions/modules/wordfilter/wordfilter.module
ViewVC logotype

Diff of /contributions/modules/wordfilter/wordfilter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7.2.9.2.13, Tue Apr 14 08:15:49 2009 UTC revision 1.7.2.9.2.14, Fri Jun 5 07:59:43 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: wordfilter.module,v 1.7.2.9.2.12 2009/04/14 08:12:03 jaydub Exp $  // $Id: wordfilter.module,v 1.7.2.9.2.13 2009/04/14 08:15:49 jaydub Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 171  function wordfilter_admin_form_delete_co Line 171  function wordfilter_admin_form_delete_co
171      db_query('DELETE FROM {wordfilter} WHERE id = %d', $form_state['values']['word_id']);      db_query('DELETE FROM {wordfilter} WHERE id = %d', $form_state['values']['word_id']);
172      drupal_set_message(t('The word was removed from the word filter list'));      drupal_set_message(t('The word was removed from the word filter list'));
173      $form_state['redirect'] = 'admin/settings/wordfilter';      $form_state['redirect'] = 'admin/settings/wordfilter';
174        cache_clear_all('*', 'cache_filter', TRUE);
175    }    }
176  }  }
177    
# Line 475  function wordfilter_admin_edit_form_subm Line 476  function wordfilter_admin_edit_form_subm
476    watchdog('wordfilter', 'Updated filter for: %word', array('%word' => $row->words));    watchdog('wordfilter', 'Updated filter for: %word', array('%word' => $row->words));
477    drupal_set_message(t('Updated filter for: %word', array('%word' => $row->words)));    drupal_set_message(t('Updated filter for: %word', array('%word' => $row->words)));
478    $form_state['redirect'] = 'admin/settings/wordfilter';    $form_state['redirect'] = 'admin/settings/wordfilter';
479      cache_clear_all('*', 'cache_filter', TRUE);
480  }  }
481    
482  /**  /**
# Line 542  function wordfilter_admin_add_form_submi Line 544  function wordfilter_admin_add_form_submi
544      drupal_set_message(t('Added filter for: %word', array('%word' => $row->words)));      drupal_set_message(t('Added filter for: %word', array('%word' => $row->words)));
545    }    }
546    $form_state['redirect'] = 'admin/settings/wordfilter';    $form_state['redirect'] = 'admin/settings/wordfilter';
547      cache_clear_all('*', 'cache_filter', TRUE);
548  }  }
549    
550  /**  /**

Legend:
Removed from v.1.7.2.9.2.13  
changed lines
  Added in v.1.7.2.9.2.14

  ViewVC Help
Powered by ViewVC 1.1.2