Closed (fixed)
Project:
Rubik
Version:
6.x-3.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 02:48 UTC
Updated:
22 Feb 2012 at 03:29 UTC
I'm using Rubik for my administration theme. If I submit a form without filling-in a required field, say at /node/add/story, Drupal will of course give an error message saying that the "Title field is required" and display the form again with the required fields outlined in red.
My problem is that the error message and the form with the outlined fields are not displayed in Rubik. They're displayed in the default front-end theme. The form looks totally whack in the front-end theme, so I need to fix this. I can't find any info on this. Any ideas?
Comments
Comment #1
jrstmartin commentedNevamind. Solved with Ajax module. Gotta love Drupal - if ya can't fix it, there's always a workaround.
http://drupal.org/project/ajax
Comment #2
jrstmartin commentedWow Ajax module causes more problems than it solves :/ Still looking for a solution to my original issue. The Drupal theme will not stay in Rubik upon submission error message. It switches to the front end theme to give the error message and looks horrible.
Comment #3
jrstmartin commentedFound a fix to this highly annoying and unsightly problem. This is assuming you have an admin theme set and hence
variable_get('admin_theme', 0);. You can also do$custom_theme = 'theme_name_here';Many thanks to subu.purohit for posting a fix.