| 1 |
<?php |
<?php |
| 2 |
// $Id: import_manager.module,v 1.14 2009/07/29 00:13:56 drumm Exp $ |
// $Id: import_manager.module,v 1.15 2009/08/06 01:47:57 drumm Exp $ |
| 3 |
|
|
| 4 |
function import_manager_menu() { |
function import_manager_menu() { |
| 5 |
$items = array( |
$items = array( |
| 200 |
} |
} |
| 201 |
|
|
| 202 |
function import_manager_form_submit($form, &$form_state, $quiet = FALSE) { |
function import_manager_form_submit($form, &$form_state, $quiet = FALSE) { |
| 203 |
|
set_time_limit(0); |
| 204 |
|
|
| 205 |
if (isset($form_state['values']['import']['file path'])) { |
if (isset($form_state['values']['import']['file path'])) { |
| 206 |
include_once $form_state['values']['import']['file path']; |
include_once $form_state['values']['import']['file path']; |
| 207 |
} |
} |
| 228 |
* Optional array of data which would usually be submitted with the import. |
* Optional array of data which would usually be submitted with the import. |
| 229 |
*/ |
*/ |
| 230 |
function import_manager_run($callback, $data = array()) { |
function import_manager_run($callback, $data = array()) { |
|
set_time_limit(0); |
|
| 231 |
$form_state = array( |
$form_state = array( |
| 232 |
'values' => array( |
'values' => array( |
| 233 |
'import' => import_manager_get_import($callback), |
'import' => import_manager_get_import($callback), |