| 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 |
| 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 |
| 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 |
|
} |