소스 검색

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;
 		}
 	}