aboutsummaryrefslogtreecommitdiff
path: root/muamba.module
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-07 11:52:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-10-07 11:52:54 -0300
commit97e344fc71919016cf493eae154e96a6476601c6 (patch)
treee72944aed2bdf5a28f67a1ef1eab281d3617c4ad /muamba.module
parent309c71bbfc3e652dce65170a9cc52acfc7bef601 (diff)
downloadmuamba-97e344fc71919016cf493eae154e96a6476601c6.tar.gz
muamba-97e344fc71919016cf493eae154e96a6476601c6.tar.bz2
Adding views support
Diffstat (limited to 'muamba.module')
-rw-r--r--muamba.module20
1 files changed, 20 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module
index 840136d..0cfe977 100644
--- a/muamba.module
+++ b/muamba.module
@@ -269,3 +269,23 @@ function muamba_user_delete($account) {
->condition('owner', $account->uid)
->execute();
}
+
+/**
+ * Register View API information. This is required for your module to have
+ * its include files loaded; for example, when implementing
+ * hook_views_default_views().
+ *
+ * @return
+ * An array with the following possible keys:
+ * - api: (required) The version of the Views API the module implements.
+ * - path: (optional) If includes are stored somewhere other than within
+ * the root module directory, specify its path here.
+ * - template path: (optional) A path where the module has stored it's views template files.
+ * When you have specificed this key views automatically uses the template files for the views.
+ * You can use the same naming conventions like for normal views template files.
+ */
+function muamba_views_api() {
+ return array(
+ 'api' => 3,
+ );
+}