- πΊπΈUnited States bluegeek9
I am not sure this needs to be ported to 8.x-1.x.
Is this correct, 'not ... less than the longest value' ?
This can not be less than the longest value in the database.
// @todo: Port this feature to Drupal 8.
$extra_max_info = '<div>' . t('This can not be less than the longest value in the database. The minimum values are:') . '</div>';
$extra_max_items = [];
foreach (_name_translations() as $key => $title) {
$extra_max_items[] = t('@title is @size', [
'@title' => $title,
'@size' => $form['max_length'][$key]['#min'],
]);
}
$item_list = [
'#theme' => 'item_list',
'#items' => $extra_max_items,
];
$extra_max_info .= drupal_render($item_list);
if ($has_data) {
$min_length = $settings['max_length'][$key];
if ($field['storage']['type'] == 'field_sql_storage') {
try {
$table = 'field_data_' . $field['field_name'];
$column = $field['storage']['details']['sql'][FIELD_LOAD_CURRENT]
[$table][$key];
$min_length = db_query("SELECT MAX(CHAR_LENGTH({$column})) AS len FROM {$table}")->fetchField();
if ($min_length < 1) {
$min_length = 1;
}
}
catch (Exception $e) {
}
}
}
Postponed: needs info
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I am not sure this needs to be ported to 8.x-1.x.
Is this correct, 'not ... less than the longest value' ?
This can not be less than the longest value in the database.