Permalink
Browse files

Added warning if no Parser is enabled in first_install screen

  • Loading branch information...
1 parent 6b740b1 commit 680b620ece0e5cf6b000a3dccecd6606048a3513 @shakty committed Apr 13, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 includes/forms/first_install.inc
@@ -54,6 +54,14 @@ function patterns_first_install($form, &$form_state) {
'#markup' => t($intro),
);
+ $parsers = patterns_parser_build_formats_index();
+ if (empty($parsers)) {
+ $form['welcome']['parsers'] = array(
+ '#prefix' => '<strong>' . t('Warning: ') . '</strong>',
+ '#markup' => t('It seems that you have not yet enabled any Patterns parser. You will not be able to load or run any pattern. Please visit the !modules page to enable at least one parser.', array('!modules' => l('modules', 'admin/modules'))),
+ );
+ }
+
$form['welcome']['drush_path'] = array(
'#type' => 'textfield',
'#title' => t('Drush Path'),

0 comments on commit 680b620

Please sign in to comment.