Views defaults element come from the code below:
We should make this super simple to change:
<?php
$elements = variable_get('views_field_rewrite_elements', array(
'' => t('- Use default -'),
'0' => t('- None -'),
'div' => t('DIV'),
'span' => t('SPAN'),
'h1' => t('H1'),
'h2' => t('H2'),
'h3' => t('H3'),
'h4' => t('H4'),
'h5' => t('H5'),
'h6' => t('H6'),
'p' => t('P'),
'strong' => t('STRONG'),
'em' => t('EM'),
));
}
?>
All we have to do is either set that variable or a better option would be provide strongarm exports.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Views UI enabled | 19.47 KB | Anonymous (not verified) |
| #4 | Captura de pantalla 2011-07-13 a las 12.36.50.png | 114.77 KB | Anonymous (not verified) |
Comments
Comment #1
ericduran commentedComment #2
jensimmons commentedWOOHOOOO!!!
+100000000
Comment #3
ericduran commentedThis is now fixed.
Theres a check-box in the settings page that shows up when views is enabled. Toggling that checkbox adds and remove the new elements from the views_ui.
--
http://drupal.org/commitlog/commit/15150/7da83dfd6835f2e0f6fd4eb97cb40c6...
Comment #4
Anonymous (not verified) commentedAfter install the last update (7.x-1.x-dev), I can't see the checkbox to add/remove the new elements from the views_ui. Last views 7.x-3.x-dev installed
Thank you in advance
Comment #5
ericduran commentedHmm, interesting. I made the checkbox a conditional. It only shows up when views is enabled.
Also I would try Dl html5 tools again unless you're sure youhave the latest version.
Comment #6
Anonymous (not verified) commentedHi,
I have removed the html5 tools directory and downloaded again, database updated and Views UI disabled and enabled again, but no checkbox :(
Comment #7
ericduran commentedHmm, I'm testing this now. Thanks for the bug report. Give me a couple of mins.
Comment #8
ericduran commentedHmm, there seems to be a problem with the drupal packaging script.
It didn't pick up the last commit.
I'm looking into it.
Comment #9
ericduran commentedOk, we actually ran into an issue the drupal.org packaging script. I made a small change to see if the packaging script will re-package the download and maybe that would work.
Comment #10
ericduran commented@jmesam, ok it seems like the drupal packaging script put up the changes now and made a new .zip file. Feel free to update to the latest version and it now has the proper setting.
Thanks for the bug report :)
Comment #11
Anonymous (not verified) commentedThank you, now works