diff --git a/flag.module b/flag.module
index f318975..9ba1dd1 100644
--- a/flag.module
+++ b/flag.module
@@ -14,7 +14,7 @@
  *  'sub-type'      -> 'bundle' ('type' is also used sometimes!)
  */
 
-define('FLAG_API_VERSION', 2);
+define('FLAG_API_VERSION', 3);
 
 define('FLAG_ADMIN_PATH', 'admin/structure/flags');
 define('FLAG_ADMIN_PATH_START', 3);
@@ -194,7 +194,7 @@ function flag_init() {
  */
 function flag_views_api() {
   return array(
-    'api' => 2.0,
+    'api' => FLAG_API_VERSION,
     'path' => drupal_get_path('module', 'flag') . '/includes',
   );
 }
