/[drupal]/contributions/modules/coder/coder_review/includes/coder_review_7x.inc
ViewVC logotype

Diff of /contributions/modules/coder/coder_review/includes/coder_review_7x.inc

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

revision 1.41, Sun Oct 18 12:45:36 2009 UTC revision 1.42, Sun Oct 18 13:35:57 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: coder_review_7x.inc,v 1.40 2009/09/26 23:28:00 sun Exp $  // $Id: coder_review_7x.inc,v 1.41 2009/10/18 12:45:36 snpower Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 689  function coder_review_7x_reviews() { Line 689  function coder_review_7x_reviews() {
689          '#value' => '[\s\(]user_authenticate\s*\(\s*' . $argex . '\s*\)',          '#value' => '[\s\(]user_authenticate\s*\(\s*' . $argex . '\s*\)',
690          '#warning_callback' => '_coder_review_7x_user_authenticate_warning',          '#warning_callback' => '_coder_review_7x_user_authenticate_warning',
691        ),        ),
692        // http://drupal.org/node/224333#hook-user-changes --- Removed several unecessary arguments to various hook_user_$op hooks and removed hook_profile_alter        // http://drupal.org/node/224333#hook-user-changes
693          array(
694            '#type' => 'regex',
695            '#value' => 'function\s+\w+_profile_alter\s*\(',
696            '#warning_callback' => '_coder_review_7x_hook_profile_alter_warning',
697          ),
698    
699    
700      // Node API      // Node API
# Line 1911  function _coder_review_7x_hook_access_wa Line 1916  function _coder_review_7x_hook_access_wa
1916    );    );
1917  }  }
1918    
1919    function _coder_rewview_7x_hook_profile_alter_warning() {
1920      return array(
1921        '#warning' => t('!hook_profile_alter() has been removed in favour of !hook_user_view().',
1922        array(
1923          '!hook_profile_alter()' => theme('drupalapi', array('function' => 'hook_profile_alter', 'version' => 6)),
1924          '!hook_user_view()' => theme('drupalapi', array('function' => 'hook_user_view', 'version' => 7)),
1925        )),
1926      );
1927    }

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

  ViewVC Help
Powered by ViewVC 1.1.2