|
@@ -1,9 +1,16 @@
|
|
<?php
|
|
<?php
|
|
|
|
+/**
|
|
|
|
+ * @file
|
|
|
|
+ * Basic function for the natural diversity module
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+require_once 'api/tripal_natural_diversity.api.inc';
|
|
|
|
+
|
|
|
|
+require_once 'theme/tripal_natural_diversity.theme.inc';
|
|
|
|
+
|
|
|
|
+require_once 'includes/tripal_natural_diversity.schema.inc';
|
|
|
|
+require_once 'includes/tripal_natural_diversity.admin.inc';
|
|
|
|
|
|
-require_once('api/tripal_natural_diversity.api.inc');
|
|
|
|
-require_once('theme/tripal_natural_diversity.theme.inc');
|
|
|
|
-require_once('includes/tripal_natural_diversity.schema.inc');
|
|
|
|
-require_once('includes/tripal_natural_diversity.admin.inc');
|
|
|
|
/**
|
|
/**
|
|
* @defgroup tripal_natural_diversity Natural Diversity Module
|
|
* @defgroup tripal_natural_diversity Natural Diversity Module
|
|
* @ingroup tripal_modules
|
|
* @ingroup tripal_modules
|
|
@@ -28,7 +35,10 @@ function tripal_natural_diversity_permission() {
|
|
),
|
|
),
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
|
|
+ * Implements hook_menu().
|
|
|
|
+ *
|
|
* Menu items are automatically added for the new node types created
|
|
* Menu items are automatically added for the new node types created
|
|
* by this module to the 'Create Content' Navigation menu item. This function
|
|
* by this module to the 'Create Content' Navigation menu item. This function
|
|
* adds more menu items needed for this module.
|
|
* adds more menu items needed for this module.
|
|
@@ -69,8 +79,9 @@ function tripal_natural_diversity_menu() {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Implements hook_views_api()
|
|
|
|
- * Purpose: Essentially this hook tells drupal that there is views support for
|
|
|
|
|
|
+ * Implements hook_views_api().
|
|
|
|
+ *
|
|
|
|
+ * Essentially this hook tells drupal that there is views support for
|
|
* for this module which then includes tripal_natural_diversity.views.inc where all the
|
|
* for this module which then includes tripal_natural_diversity.views.inc where all the
|
|
* views integration code is
|
|
* views integration code is
|
|
*
|
|
*
|
|
@@ -83,7 +94,7 @@ function tripal_natural_diversity_views_api() {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Implements hook_theme
|
|
|
|
|
|
+ * Implements hook_theme().
|
|
*
|
|
*
|
|
* @ingroup tripal_natural_diversity
|
|
* @ingroup tripal_natural_diversity
|
|
*/
|
|
*/
|
|
@@ -118,6 +129,8 @@ function tripal_natural_diversity_theme($existing, $type, $theme, $path) {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * Implements hook_block_info().
|
|
|
|
+ *
|
|
* @ingroup tripal_library
|
|
* @ingroup tripal_library
|
|
*/
|
|
*/
|
|
function tripal_natural_diversity_block_info() {
|
|
function tripal_natural_diversity_block_info() {
|
|
@@ -133,7 +146,10 @@ function tripal_natural_diversity_block_info() {
|
|
|
|
|
|
return $blocks;
|
|
return $blocks;
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
|
|
+ * Implements hook_block_view().
|
|
|
|
+ *
|
|
* @ingroup tripal_library
|
|
* @ingroup tripal_library
|
|
*/
|
|
*/
|
|
function tripal_natural_diversity_block_view($delta = '') {
|
|
function tripal_natural_diversity_block_view($delta = '') {
|
|
@@ -161,7 +177,9 @@ function tripal_natural_diversity_block_view($delta = '') {
|
|
return $block;
|
|
return $block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
|
|
+ * Implements hook_node_view(). Acts on all content types.
|
|
*
|
|
*
|
|
* @ingroup tripal_natural_diversity
|
|
* @ingroup tripal_natural_diversity
|
|
*/
|
|
*/
|