We are using the table highlight module on a whole bunch of views. The problem we now face is that there is no way to export/import the highlight code with features.
This makes it difficult to maintain a development and production site with table highlighting. Is there an easy way to still implement this?

CommentFileSizeAuthor
#4 1878010.patch686 bytesArgus

Comments

Scryver’s picture

Solved it already. Please add the following code to views_table_highlighter_plugin_style.inc:

  function option_definition() {
    $options = parent::option_definition();
    $options['views_table_highlighter'] = array('code' => '');
    return $options;
  }

This will make sure that the code in the table highlight plugin style is defined and therefore also exported.

Scryver’s picture

Category: feature » bug
Status: Active » Needs review
aarailfan’s picture

Issue summary: View changes

I came across this last week as I was exporting views to code so I have fallback if I screw them up...the above fix worked for me.

It looks like this has not made it to either the production or dev version of this module. What is needed to do to get this in and a new release cut?

Argus’s picture

StatusFileSize
new686 bytes

Yeah, that also worked for me. Added a patch.

anybody’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm this problem and the patch fixes it. We lost our whole configuration through this bug.

Please commit!