/[drupal]/contributions/modules/jq/jq.add.inc
ViewVC logotype

Diff of /contributions/modules/jq/jq.add.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.3, Sun Jun 29 00:51:04 2008 UTC revision 1.2.2.4, Wed Oct 1 02:02:09 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: jq.add.inc,v 1.2.2.2 2008/05/04 19:06:16 aaron Exp $  // $Id: jq.add.inc,v 1.2.2.3 2008/06/29 00:51:04 aaron Exp $
3    
4  function _jq_add($plugin, $extra = array(), $cached = TRUE, $display_errors = FALSE, $log_errors = TRUE) {  function _jq_add($plugin, $extra = array(), $cached = TRUE, $display_errors = FALSE, $log_errors = TRUE) {
5    static $invoked_plugins, $errors;    static $invoked_plugins, $errors;
# Line 43  function _jq_add($plugin, $extra = array Line 43  function _jq_add($plugin, $extra = array
43      }      }
44    }    }
45    if ($invoked_plugins[$plugin]) {    if ($invoked_plugins[$plugin]) {
46      module_load_include('jq.inc', $jq['module']);      if ($jq['module']) {
47      $args = array('add', $plugin);        module_load_include('jq.inc', $jq['module']);
48      $args = array_merge($args, (array)$extra);        $args = array('add', $plugin);
49      $function = $jq['module'] .'_jq';        $args = array_merge($args, (array)$extra);
50      call_user_func_array($function, $args);        $function = $jq['module'] .'_jq';
51          call_user_func_array($function, $args);
52        }
53    }    }
54    return $invoked_plugins[$plugin];    return $invoked_plugins[$plugin];
55  }  }

Legend:
Removed from v.1.2.2.3  
changed lines
  Added in v.1.2.2.4

  ViewVC Help
Powered by ViewVC 1.1.2