2, ); } /** * Implementation of hook_views_plugins */ function mongodb_views_views_plugins() { return array( 'module' => 'mongodb_views', 'query' => array( 'mongoViewsQuery' => array( 'title' => t('MongoDB Query'), 'help' => t('Query will be generated and run using the MongoDB API.'), 'handler' => 'mongoViewsQuery', 'parent' => 'views_query', ), ), ); } /** * Implementation of hook_views_handlers(). */ function mongodb_views_views_handlers() { return array( 'info' => array( 'path' => drupal_get_path('module', 'mongodb_views') . '/handlers', ), 'handlers' => array( 'mongodb_views_handler_filter_numeric' => array( 'parent' => 'views_handler_filter_numeric', ), ), ); }