function _coder_6x_db_num_rows_warning in Coder 6
Same name and namespace in other branches
- 5.2 includes/coder_6x.inc \_coder_6x_db_num_rows_warning()
- 6.2 includes/coder_6x.inc \_coder_6x_db_num_rows_warning()
1 string reference to '_coder_6x_db_num_rows_warning'
- coder_6x_reviews in includes/
coder_6x.inc - Implementation of hook_reviews().
File
- includes/
coder_6x.inc, line 865 - This include file implements coder functionality for 5.x -> 6.x upgrades.
Code
function _coder_6x_db_num_rows_warning() {
return array(
'#warning' => t('!db_num_rows() has been deprecated', array(
'!db_num_rows' => theme('drupalapi', 'db_num_rows', '5'),
)),
'#link' => 'http://drupal.org/node/114774#db-num-rows',
'#description' => t('The db_num_rows() method was removed from the database abstraction layer in 6.x core, as it was a database dependent method. Use SELECT COUNT(*) or some other appropriate solutions'),
);
}