passing arguments to views with drupalsite framework

Events happening in the community are now at Drupal community events on www.drupal.org.
amcc's picture

I'm using the Drupalsite framework successfully to get views into flash. Has anyone had any luck passing arguments to views with drupalsite.

Comments

DrupalSIte: <?php     

seutje's picture

DrupalSIte:

<?php
     
public function getView(viewname:String, callback:Function, data:Object = null, reload:Boolean = false, viewFields:Array = null, viewArgs:Array = null):Boolean {
        
           if (
VIEWS[viewname] && VIEWS[viewname] is Array && !reload) {
             
log('DrupalSite: info: Using cache data for view ' + viewname);
             
callback(data, VIEWS[viewname]);
              return
true;
           }
        
           return
startBlocking(callback, data, viewname, 'views.get', viewname, viewFields, viewArgs);
       
       }
?>

ur project:

<?php
 
var fields:Array = new Array();
  var
args:Array = new Array();
 
args.push('7'); // just some number or other argument
 
drupal.getView("wheel", gotWheel, null, true, fields, args);
?>

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: