$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($typesas$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.'),);