Before we get a more general framework in (http://drupal.org/node/346573), I'd like to add a small option to use the administration theme on batch processing pages. I bet 95% of batch use cases are administrative tasks and originate from the administration interface (like starting tests, deleting nodes, ...). This small patch adds this option as a checkbox after "allow administraitont heme for content editing".
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | admin-theme-batch-forced.patch | 1001 bytes | davyvdb |
| admin-theme-batch.patch | 2.72 KB | davyvdb |
Comments
Comment #1
Bojhan commentedLets not make this an option, but something by default.
Comment #2
pasqualleif that page should be displayed with admin theme, then we do not need an option. the
arg(0) == 'batch'should be enough, or if the batch page path can be changed then move it to somewhere like 'admin/config/development/batch'.Comment #3
davyvdb commentedMmmmh. I'm not sure about that. Forcing /admin* to show in administration theme when administration theme is on makes sence. /admin* is always for administrative tasks. Batch may sometimes be used in the front end. Albeit not quite often.
Anyway. I've provided a patch for the forced option too for if we decide to go this path.
Comment #5
davyvdb commentedThis actually fails because of the maintenance page definition. In theme.inc we have
But maintenance-page is in system module folder.
#321828: maintenance_page not registered correctly in drupal_common_theme()
Comment #6
davyvdb commentedNow that we have #321828: maintenance_page not registered correctly in drupal_common_theme() in... back to review.
Comment #7
dropcube commentedThe batch process page should use the same theme of the page that started the batch. See #539022: Batch API should use the current theme to run the batches
Comment #8
johnalbin"quickfix" isn't the proper tag, "quick fix" is. Updating this issue so the auto-complete on tags only shows the proper one.