function patterns_import_url in Patterns 5
Same name and namespace in other branches
- 6.2 patterns.module \patterns_import_url()
- 6 patterns.module \patterns_import_url()
- 7.2 includes/forms/import.inc \patterns_import_url()
- 7 includes/forms/import.inc \patterns_import_url()
Display the import pattern url form
1 string reference to 'patterns_import_url'
- patterns_menu in ./
patterns.module - Implementation of hook_menu().
File
- ./
patterns.module, line 202 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_import_url() {
$form['xmlurl'] = array(
'#type' => 'textfield',
'#title' => t('Specify an XML url'),
'#description' => t('Import a pattern from a remote URL. Imported patterns are not executed until you run them manually.'),
'#size' => 48,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
$form['#base'] = 'patterns_import';
return $form;
}