array( 'name' => t('jQuery UI Carousel'), 'description' => t(''), 'version' => '1.1', 'url' => 'http://plugins.jquery.com/project/uicarousel', ), ); break; case 'add': switch ($plugin) { case 'uicarousel': // When adding the plugin, allow additional arguments so that // we can automatically add the jQuery $selector and $callback // function. $args = func_get_args(); unset($args[0]); // $op unset($args[1]); // $plugin call_user_func_array('uicarousel_add', $args); break; } break; } }