title length limit of 128 to 256 for drupal 6
omills - March 27, 2009 - 05:06
| Project: | Node Quick Find |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | nicholasThompson |
| Status: | active |
Jump to:
Description
Hi,
You need to change the maxlength of the title field if you want to take advantage of the 256 chars that Drupal 6 has (drupal 5 only allowed 128 chars for the title field).
Sorry I don't know how to do patched but you can change this function (see '#maxlength' => 256 added)
function node_quick_find_block_contents_form(&$form_state, $delta) {
$form = array();
$settings = variable_get('node_quick_find_'. $delta, array());
$form['title'] = array(
'#title' => t(isset($settings['field_title']) ? check_plain($settings['field_title']) : 'Title'),
'#type' => 'textfield',
'#autocomplete_path' => 'node_quick_find/autocomplete/'. $delta,
'#size' => isset($settings['field_size']) ? $settings['field_size'] : 16,
'#maxlength' => 256
);
#1
Cheers,
Nick