| 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 |
| 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 |
} |
} |
| 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)); |
| 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 |
|
|
| 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'])); |