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.

CommentFileSizeAuthor
#6 Views UI enabled19.47 KBAnonymous (not verified)
#4 Captura de pantalla 2011-07-13 a las 12.36.50.png114.77 KBAnonymous (not verified)

Comments

ericduran’s picture

Category: task » feature
Priority: Normal » Critical
jensimmons’s picture

WOOHOOOO!!!

+100000000

ericduran’s picture

Status: Active » Fixed

This 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...

Anonymous’s picture

After 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

ericduran’s picture

Hmm, 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.

Anonymous’s picture

StatusFileSize
new19.47 KB

Hi,
I have removed the html5 tools directory and downloaded again, database updated and Views UI disabled and enabled again, but no checkbox :(

ericduran’s picture

Hmm, I'm testing this now. Thanks for the bug report. Give me a couple of mins.

ericduran’s picture

Hmm, there seems to be a problem with the drupal packaging script.

It didn't pick up the last commit.

I'm looking into it.

ericduran’s picture

Status: Fixed » Active

Ok, 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.

ericduran’s picture

Status: Active » Fixed

@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 :)

Anonymous’s picture

Thank you, now works

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.