/[drupal]/contributions/modules/views/views_export/views_export.module
ViewVC logotype

Diff of /contributions/modules/views/views_export/views_export.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9.4.1 by merlinofchaos, Mon Nov 2 22:01:27 2009 UTC revision 1.9.4.2 by dereine, Sat Nov 28 16:53:15 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: views_export.module,v 1.4.2.4 2009/09/15 17:26:53 merlinofchaos Exp $  // $Id: views_export.module,v 1.9.4.1 2009/11/02 22:01:27 merlinofchaos Exp $
3    
4  /**  /**
5   * @file views_export.module   * @file views_export.module
# Line 34  function views_export_menu() { Line 34  function views_export_menu() {
34  function views_export_theme() {  function views_export_theme() {
35    return array(    return array(
36      'views_export_export_form' => array(      'views_export_export_form' => array(
37        'arguments' => array('form' => NULL),        'render element' => 'form',
38      ),      ),
39    );    );
40  }  }
# Line 72  function views_export_export() { Line 72  function views_export_export() {
72        'no_redirect' => TRUE,        'no_redirect' => TRUE,
73        'exportables' => $exportables,        'exportables' => $exportables,
74        'tags' => $tags,        'tags' => $tags,
75          'build_info' => array(
76            'args' => array(),
77          ),
78      );      );
79    
80      $output = drupal_render(drupal_build_form('views_export_export_form', $form_state));      $output = drupal_render(drupal_build_form('views_export_export_form', $form_state));
# Line 173  function theme_views_export_export_form( Line 176  function theme_views_export_export_form(
176    $output .= '</div>';    $output .= '</div>';
177    $form['#attached']['css'] = array(drupal_add_css(drupal_get_path('module', 'views_export') . '/views_export.css'));    $form['#attached']['css'] = array(drupal_add_css(drupal_get_path('module', 'views_export') . '/views_export.css'));
178    
179    // FIXME: This call leads to a endless recursion    $output .= drupal_render_children($form);
   $output .= drupal_render($form);  
180    return $output;    return $output;
181  }  }
182    
# Line 204  function views_export_export_form_submit Line 206  function views_export_export_form_submit
206    
207    $lines = substr_count($code, "\n");    $lines = substr_count($code, "\n");
208    
209    $types = system_elements();    $types = system_element_info();
210    
211    $info  = '; $Id: views_export.module,v 1.4.2.4 2009/09/15 17:26:53 merlinofchaos Exp $'."\n";    $info  = '; $Id: views_export.module,v 1.9.4.1 2009/11/02 22:01:27 merlinofchaos Exp $'."\n";
212    $info .= "\n";    $info .= "\n";
213    $info .= strtr("name = @module Export Module\n", array('@module' => $form_state['values']['name']));    $info .= strtr("name = @module Export Module\n", array('@module' => $form_state['values']['name']));
214    $info .= strtr("description = Exports some views of @module\n", array('@module' => $form_state['values']['name']));    $info .= strtr("description = Exports some views of @module\n", array('@module' => $form_state['values']['name']));

Legend:
Removed from v.1.9.4.1  
changed lines
  Added in v.1.9.4.2

  ViewVC Help
Powered by ViewVC 1.1.3