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

Diff of /contributions/modules/comment_revisions/comment_revisions.module

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

revision 1.1.2.2, Fri Jun 13 18:54:46 2008 UTC revision 1.1.2.3, Fri Jun 13 19:30:24 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: comment_revisions.module,v 1.24 2008/06/13 18:47:21 Raiden Exp $  // $Id: comment_revisions.module,v 1.27 2008/06/13 19:16:53 Raiden Exp $
3  /**  /**
4   *  @file   *  @file
5   *  Complete module for comment_revisions   *  Complete module for comment_revisions
# Line 230  function comment_revisions_comment($a1, Line 230  function comment_revisions_comment($a1,
230   */   */
231  function comment_revisions_form_alter($form_id, &$form){  function comment_revisions_form_alter($form_id, &$form){
232    global $user;    global $user;
233    if($form["form_id"]["#id"] == "edit-comment-form") {    if($form["form_id"]["#id"] == "edit-comment-form" && $form["cid"]["#value"] != NULL) {
234      /* is comment editing form */      /* is comment editing form */
235    
236      $isUserCmt = FALSE;      $isUserCmt = FALSE;
237      if($form['uid']['#value'] == $user->uid) {      if($form['uid']['#value'] == $user->uid) {
238        $isUserCmt = TRUE;        $isUserCmt = TRUE;

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2