function _cck_table_default_help_text in CCK Table Field 7
Same name and namespace in other branches
- 8 cck_table.module \_cck_table_default_help_text()
1 call to _cck_table_default_help_text()
- cck_table_field_widget_form in ./
cck_table.module - Implements hook_field_widget_form().
File
- ./
cck_table.module, line 252 - Defines a field type that outputs data in a table.
Code
function _cck_table_default_help_text($display, $enforce_misalign_col) {
switch ($display) {
case 'first_row_header':
$current_display = "Currently the first row is the header to this table.";
break;
case 'without_header':
$current_display = "Currently there is no header to this table.";
break;
}
$default_description = "Enter table cell data separated by |, one row per line. {$current_display}";
if ($enforce_misalign_col) {
$default_description .= " All rows must have the same number of columns.";
}
return $default_description;
}