Mercurial > defr > drupal > noderef_view
comparison noderef_view.module @ 14:e060ad73e358
Utilisation de l'api complète popup
author | Franck Deroche <franck@defr.org> |
---|---|
date | Tue, 31 Mar 2009 17:30:58 +0200 |
parents | a931d30cbfbc |
children | bf2615aab48c |
comparison
equal
deleted
inserted
replaced
13:a931d30cbfbc | 14:e060ad73e358 |
---|---|
146 } | 146 } |
147 } | 147 } |
148 } | 148 } |
149 // If we found a view with a suitable display, then link to it | 149 // If we found a view with a suitable display, then link to it |
150 if (!empty($path)) { | 150 if (!empty($path)) { |
151 popups_add_popups(); | 151 popups_add_popups(array('.noderef_view_link' => array( |
152 'noUpdate' => FALSE, | |
153 'noMessage' => FALSE | |
154 ))); | |
152 $options = array( | 155 $options = array( |
153 'attributes' => array('class' => 'popups-form-noupdate noderef_view_link'), | 156 'attributes' => array('class' => 'noderef_view_link'), |
154 'query' => array('destination' => 'node') | 157 'query' => array('destination' => 'node') |
155 ); | 158 ); |
156 $path = l(t('Search'), $path, $options); | 159 $path = l(t('Search'), $path, $options); |
157 } | 160 } |
158 return $path; | 161 return $path; |