function patterns_export in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_export/patterns_export.module \patterns_export()
Forms to export the current web site configuration
Displays a form from which any number of export functions can be selected to generate the exported pattern file
4 string references to 'patterns_export'
- drush_patterns_export in ./
patterns.drush.inc - Export data from the patterns components to file, zip archive, or database
- PatternsExportTestCase::setUp in tests/
exporting/ exporting.test - Setups the testing environment.
- patterns_drush_command in ./
patterns.drush.inc - Implements hook_drush_command().
- patterns_export_menu_alter in patterns_export/
patterns_export.module - Implements hook_menu_alter()
File
- patterns_export/
patterns_export.module, line 39
Code
function patterns_export($form, &$form_state) {
$form = array();
if (!patterns_parser_ready()) {
$messages = t('No available patterns parser was found.</br>');
$messages .= t(' Go to the !modules page to enable more Patterns parsers.', array(
'!modules' => l(t('modules'), 'admin/modules'),
));
drupal_set_message($messages, 'warning');
return $form;
}
patterns_io_load_components();
return patterns_export_page1($form, $form_state);
}