| 
					
				 | 
			
			
				@@ -1115,4 +1115,21 @@ function theme_token_list($tokens) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return theme('table', array('header' => $header, 'rows' => $rows)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * Define the entity label callback.  This will return the title. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @param $entity 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @return mixed 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function tripal_entity_label($entity) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  dpm($entity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (property_exists($entity, 'title')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return $entity->title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return NULL; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |