Index: tagadelic_views.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tagadelic_views/tagadelic_views.module,v retrieving revision 1.1.2.5 diff -u -p -r1.1.2.5 tagadelic_views.module --- tagadelic_views.module 23 Jun 2008 12:59:55 -0000 1.1.2.5 +++ tagadelic_views.module 3 Oct 2008 21:30:16 -0000 @@ -63,6 +63,22 @@ function theme_tagadelic_views($tags, $v return theme('tagadelic_weighted', $tags); } + +/** + * Function removed in views 1 dev branch, so we include it here + * Support db_query() style argument replacement in a clause. + */ +if (!function_exists('_views_replace_args')) { + function _views_replace_args($clause, $args) { + // cut & pasted directly from db_query. + if (isset($args[0]) and is_array($args[0])) { // 'All arguments in one array' syntax + $args = $args[0]; + } + _db_query_callback($args, TRUE); + return preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $clause); + } +} + function _tagadelic_build_query(&$view, $type) { // if the query doesn't exist if (!$view->query) {