Considering the maintenance of this is at minimum typing &quot;drush features-update foo&quot; and at maximum copying/pasting some code, it seems relatively minor. Views export/import expects these parameters, so I don&#39;t recommend changing them.<div>
<br></div><div>Specific questions/issues like this are better suited for the Views issue queue, but I don&#39;t think this particular question has much traction. It&#39;s not a bug, nor affects performance (especially not with an opcode cache). It&#39;s a question of personal preference and semantics, some of which you may have to abandon when leveraging Drupal. ;)</div>
<div><div>
<br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 9:54 AM, Sean Dague <span dir="ltr">&lt;<a href="mailto:sean@dague.net">sean@dague.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For instance, I find large duplication of:<br>
<br>
        &#39;alter&#39; =&gt; array(<br>
          &#39;alter_text&#39; =&gt; 0,<br>
          &#39;text&#39; =&gt; &#39;&#39;,<br>
          &#39;make_link&#39; =&gt; 0,<br>
          &#39;path&#39; =&gt; &#39;&#39;,<br>
          &#39;link_class&#39; =&gt; &#39;&#39;,<br>
          &#39;alt&#39; =&gt; &#39;&#39;,<br>
          &#39;prefix&#39; =&gt; &#39;&#39;,<br>
          &#39;suffix&#39; =&gt; &#39;&#39;,<br>
          &#39;target&#39; =&gt; &#39;&#39;,<br>
          &#39;help&#39; =&gt; &#39;&#39;,<br>
          &#39;trim&#39; =&gt; 0,<br>
          &#39;max_length&#39; =&gt; &#39;&#39;,<br>
          &#39;word_boundary&#39; =&gt; 1,<br>
          &#39;ellipsis&#39; =&gt; 1,<br>
          &#39;html&#39; =&gt; 0,<br>
          &#39;strip_tags&#39; =&gt; 0,<br>
        ),<br>
<br>
all throughout the export to be not conducive to maintainability (there are 12 instances of that stanza, 9 are exactly the same, and the other 3 only vary in their &#39;text&#39; field).<br>
<br>
I find that level of duplication somewhat problematic, and something I like to avoid.<br><font color="#888888">
<br>
        -Sean</font><div class="im"><br>
<br>
On 03/18/2011 09:31 AM, Carl Wiedemann wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Not quite sure I understand what exactly is non-maintainable?<br>
<br>
You may also investigate <a href="http://drupal.org/project/features" target="_blank">http://drupal.org/project/features</a> for<br>
assistance with exporting Views to code.<br>
<br>
<br>
On Fri, Mar 18, 2011 at 7:45 AM, Sean Dague &lt;<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a><br></div><div class="im">
&lt;mailto:<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>&gt;&gt; wrote:<br>
<br>
    I&#39;m working on a new drupal 6.x module (currently in sandbox<br>
    awaiting review - <a href="http://drupal.org/sandbox/sdague/1072704" target="_blank">http://drupal.org/sandbox/sdague/1072704</a>) which<br>
    exports it&#39;s data via views.  When I implemented<br>
    hook_views_default_views() I just used the export functionality on<br>
    views for a few basic views to get things started.<br>
<br>
    That works, but those are both very verbose, and don&#39;t implement any<br>
    i18n. Is there a standard way of trimming down the default values in<br>
    those views so this becomes a bit more sane and maintainable?<br>
<br>
    Advice would be appreciated,<br>
<br>
            -Sean<br>
<br>
    --<br>
<br>
    Sean Dague                       Learn about the Universe with the<br>
    sean at dague dot net          Mid-Hudson Astronomical Association<br>
    <a href="http://dague.net" target="_blank">http://dague.net</a> <a href="http://midhudsonastro.org" target="_blank">http://midhudsonastro.org</a><br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
<br>
Sean Dague                       Learn about the Universe with the<br>
sean at dague dot net          Mid-Hudson Astronomical Association<br>
<a href="http://dague.net" target="_blank">http://dague.net</a>                         <a href="http://midhudsonastro.org" target="_blank">http://midhudsonastro.org</a><br>
</div></div></blockquote></div><br></div></div>