<div>You also might into using Ctools object caching (or even the Ctools form wizard API) to assist with temporary caching. <a href="http://drupal.org/project/ctools">http://drupal.org/project/ctools</a></div><div><br></div>
<div><br></div><div class="gmail_quote">On Fri, May 27, 2011 at 9:25 AM, Fred Jones <span dir="ltr">&lt;<a href="mailto:fredthejonester@gmail.com">fredthejonester@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a custom module with a form and it works fine with multistep--I<br>
found a tutorial somewhere how to do that.<br>
<br>
But I need it to be filtered by the user and paged. Just like the<br>
admin/content page we all know and love.<br>
<br>
I see that the pager links do not contain the filter settings--they<br>
are just ?page=7 etc. I found in node.admin.inc that the filters are<br>
kept constant by inserting them into $_SESSION and then referencing<br>
them later.<br>
<br>
Is that the way to do it? I&#39;m confused because in D6 my pager links<br>
would end with :<br>
<br>
?page=4&amp;begin_date[month]=5&amp;begin_date[day]=27&amp;begin_date[year]=1993 etc.<br>
<br>
IE the filter settings were in the URL. Is there something I am<br>
missing to get that to work?<br>
<br>
While I&#39;m here I will mention that in D6 I used this:<br>
<br>
<br>
  $form[&#39;searchparams&#39;][&#39;begin_date&#39;] = array(<br>
    &#39;#type&#39; =&gt; &#39;date&#39;,<br>
    &#39;#title&#39; =&gt; &#39;Begin Date&#39;,<br>
    &#39;#default_value&#39; =&gt; $form[&#39;post&#39;][&#39;begin_date&#39;]<br>
  );<br>
<br>
to get my filters to remain after the submit. I changed one line:<br>
<br>
    &#39;#default_value&#39; =&gt; $form_state[&#39;input&#39;][&#39;end_date&#39;],<br>
<br>
for D7 and it works. Is that the right way?<br>
<br>
Any light you can shed on this topic is appreciated. I have been<br>
Googling and reading but a push in the right direction would<br>
help--this is my first foray into D7 FAPI. :)<br>
<br>
Thanks!<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>