function _coder_review_7x_drupal_behaviors_warning in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/includes/coder_review_7x.inc \_coder_review_7x_drupal_behaviors_warning()
Return the warning text for http://drupal.org/node/224333#drupal_behaviors.
This is in it's own function because the text is needed in both the rules definition, and in a callback function, so rather than define the warning twice, just define it once here.
2 calls to _coder_review_7x_drupal_behaviors_warning()
- coder_review_7x_reviews in coder_review/
includes/ coder_review_7x.inc - Implements hook_reviews().
- _coder_review_7x_drupal_behaviors_callback in coder_review/
includes/ coder_review_7x.inc - @todo: add a function header comment.
File
- coder_review/
includes/ coder_review_7x.inc, line 1487 - This include file implements coder functionality for 6.x -> 7.x upgrades.
Code
function _coder_review_7x_drupal_behaviors_warning() {
return array(
'#text' => 'Changed Drupal.behaviors to objects having the methods "attach" and "detach".',
'#link' => _drupalnode(224333, 'drupal_behaviors'),
);
}