Commit 9e67a73d authored by Nicholas Thompson's avatar Nicholas Thompson
Browse files

Fixed #345023 - increased field max lengths

parent c1fa6578
......@@ -18,15 +18,15 @@ function page_title_admin_settings() {
$form['title']['page_title_front'] = array('#type' => 'markup', '#value' => 'Frontpage Pattern');
//Define the 'default' token patterns
$form['pattern']['page_title_default'] = array('#type' => 'textfield', '#default_value' => variable_get('page_title_default', '[page-title] | [site-name]'), '#maxlength' => 128, '#description' => t('This is the pattern used in a situation where a pattern is not defined specifically for a content type below.'));
$form['pattern']['page_title_front'] = array('#type' => 'textfield', '#default_value' => variable_get('page_title_front', '[site-name] | [site-slogan]'), '#maxlength' => 128, '#description' => t('This is the frontpage pattern.'));
$form['pattern']['page_title_default'] = array('#type' => 'textfield', '#default_value' => variable_get('page_title_default', '[page-title] | [site-name]'), '#size' => 30, '#maxlength' => 256, '#description' => t('This is the pattern used in a situation where a pattern is not defined specifically for a content type below.'), '#required' => TRUE, );
$form['pattern']['page_title_front'] = array('#type' => 'textfield', '#default_value' => variable_get('page_title_front', '[site-name] | [site-slogan]'), '#size' => 30, '#maxlength' => 256, '#description' => t('This is the frontpage pattern.'), );
//Definate the patterns per-node-type
$types = node_get_types();
foreach ($types as $type) {
$key = 'page_title_type_'. $type->type;
$form['title'][$key] = array('#type' => 'markup', '#value' => t('Pattern for %type', array('%type' => $type->name)), );
$form['pattern'][$key] = array('#type' => 'textfield', '#default_value' => variable_get($key, ''), '#maxlength' => 128, '#description' => t('If left blank, will inherit from default settings.'));
$form['pattern'][$key] = array('#type' => 'textfield', '#default_value' => variable_get($key, ''), '#size' => 30, '#maxlength' => 256, '#description' => t('If left blank, will inherit from default settings.'), );
}
//Add the system buttons to the form
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment