<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"><<a href="mailto:fredthejonester@gmail.com">fredthejonester@gmail.com</a>></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'm confused because in D6 my pager links<br>
would end with :<br>
<br>
?page=4&begin_date[month]=5&begin_date[day]=27&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'm here I will mention that in D6 I used this:<br>
<br>
<br>
$form['searchparams']['begin_date'] = array(<br>
'#type' => 'date',<br>
'#title' => 'Begin Date',<br>
'#default_value' => $form['post']['begin_date']<br>
);<br>
<br>
to get my filters to remain after the submit. I changed one line:<br>
<br>
'#default_value' => $form_state['input']['end_date'],<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>