comparison mee.module @ 23:7bb9f2f3b104

Fields: Don't put n/a in case short content is empty
author Franck Deroche <defr@ows.fr>
date Tue, 06 Apr 2010 16:01:10 +0000
parents 97a888cb817c
children 32d8c9f818a8
comparison
equal deleted inserted replaced
22:ebfe52029f74 23:7bb9f2f3b104
303 303
304 /** 304 /**
305 * Theme function for 'short' text field formatter. 305 * Theme function for 'short' text field formatter.
306 */ 306 */
307 function theme_mee_formatter_short($element) { 307 function theme_mee_formatter_short($element) {
308 return check_markup($element['#item']['short']); 308 $value = $element['#item']['short'];
309 return empty($value) ? $value : check_markup($value);
309 } 310 }
310 311
311 //function theme_mee_context_formatter($element) { 312 //function theme_mee_context_formatter($element) {
312 // return 'foo'; 313 // return 'foo';
313 //} 314 //}