浏览代码

work in progress

alexgl 13 年之前
父节点
当前提交
91c17d892f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tripal_helpers/tripal_helper_form/tripal_helper_form.module

+ 3 - 3
tripal_helpers/tripal_helper_form/tripal_helper_form.module

@@ -4,8 +4,10 @@
 /**
  * taken from http://www.akchauhan.com/create-drupal-form-using-theme_table-like-module-list-form/
  * following as function theme_featured_product_form($form)
+ * 
+ * to be run as a regular function, within a module's theme function implementation
  */
-function theme_tripal_helper_form_form($form, $field_keys){
+function tripal_helper_form_theme_form($form, $field_keys){
 	$rows = array();
 	foreach (element_children($form) as $key) {
 		$row = array();
@@ -25,8 +27,6 @@ function theme_tripal_helper_form_form($form, $field_keys){
 				}
 			}
  
-		
- 
 			$rows[] = $row;
 		}
 	}