function patterns_forms_get_name_selector in Patterns 7
Same name and namespace in other branches
- 7.2 includes/forms/forms.inc \patterns_forms_get_name_selector()
1 call to patterns_forms_get_name_selector()
- patterns_export_page1 in patterns_export/
patterns_export.module
File
- includes/
forms/ forms.inc, line 200
Code
function patterns_forms_get_name_selector(&$form = array(), $default = NULL, $options = array()) {
$form['pattern_name'] = array(
'#type' => 'textfield',
'#title' => t('Name of the pattern file'),
'#default_value' => t('pattern') . '_' . strval(time()),
);
return $form;
}