• Avail guidance to develop Drupal modules & Drupal themes
  • Share and get review of your code
  • Get Access to free CodeBooks and ThemeBooks
  • Drupal 5, 6 and 7 covered

Userpoints Meter

0 Points /1000 Points

Flag module: Missing argument 2 for views_break_phrase()

in Patch

This CodeLet depicts the patch which will replace the views_break_phrase() implementation in flag_plugin_argument_validate_flaggability.inc. However, the development release of flag module has already implemented this change. The changes has to be made because signature of views_break_phrase() has been changed.

Index: includes/flag_plugin_argument_validate_flaggability.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag/includes/Attic/flag_plugin_argument_validate_flaggability.inc,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 flag_plugin_argument_validate_flaggability.inc
--- includes/flag_plugin_argument_validate_flaggability.inc 3 Dec 2008 14:10:00 -0000 1.1.2.3
+++ includes/flag_plugin_argument_validate_flaggability.inc 20 Apr 2010 08:44:44 -0000
@@ -169,7 +169,7 @@ class flag_plugin_argument_validate_flag
}
}

- $ids = views_break_phrase($argument);
+ $ids = views_break_phrase($argument, $this);
if ($ids->value == array(-1)) {
// Malformed argument syntax. Invalidate.
return FALSE;

5
Your rating: None Average: 5 (4 votes)
Syndicate content

Recent comments