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

Diff of /contributions/modules/comment_alter_taxonomy/comment_alter_taxonomy.module

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

revision 1.13, Mon Jan 26 18:31:01 2009 UTC revision 1.14, Mon Jan 26 20:15:33 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: comment_alter_taxonomy.module,v 1.12 2009/01/05 02:21:00 damz Exp $  // $Id: comment_alter_taxonomy.module,v 1.13 2009/01/26 18:31:01 damz Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 35  function comment_alter_taxonomy_menu($ma Line 35  function comment_alter_taxonomy_menu($ma
35  }  }
36    
37  /**  /**
38     * Implementation of hook_views_api().
39     */
40    function comment_alter_taxonomy_views_api() {
41      return array('api' => 2.0);
42    }
43    
44    /**
45   * Administration settings form.   * Administration settings form.
46   */   */
47  function comment_alter_taxonomy_admin_settings() {  function comment_alter_taxonomy_admin_settings() {
# Line 64  function comment_alter_taxonomy_form_alt Line 71  function comment_alter_taxonomy_form_alt
71      // {comment_alter_taxonomy} may need to be updated if any comments are edited/deleted.      // {comment_alter_taxonomy} may need to be updated if any comments are edited/deleted.
72      $form['#submit'][] = 'comment_alter_taxonomy_comment_mass_update';      $form['#submit'][] = 'comment_alter_taxonomy_comment_mass_update';
73    }    }
74    elseif (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id && isset($form['nid']['#value'])) {    elseif (isset($form['type']['#value']) && $form['type']['#value'] .'_node_form' == $form_id && isset($form['nid']['#value'])) {
75      // Prevent user from changing the terms for any vocabulary that can be altered from a comment with this      // Prevent user from changing the terms for any vocabulary that can be altered from a comment with this
76      // module.      // module.
77      if (isset($form['taxonomy'])) {      if (isset($form['taxonomy'])) {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.2