| 4 |
* Based on node_import (the cvs content importer) |
* Based on node_import (the cvs content importer) |
| 5 |
* |
* |
| 6 |
* Nigel Sim <nigel.sim@gmail.com> 2005, 2006 |
* Nigel Sim <nigel.sim@gmail.com> 2005, 2006 |
| 7 |
|
* |
| 8 |
|
* D6 release |
| 9 |
*/ |
*/ |
| 10 |
|
|
| 11 |
ini_set('auto_detect_line_endings', TRUE); |
ini_set('auto_detect_line_endings', TRUE); |
| 25 |
|
|
| 26 |
function import_typepad_menu($may_cache) { |
function import_typepad_menu($may_cache) { |
| 27 |
$links = array(); |
$links = array(); |
|
if ($may_cache) { |
|
| 28 |
$links[] = array('path' => 'admin/node/import_typepad', 'title' => t('type pad'), 'callback' => 'import_typepad_page', 'weight' => 5, 'access' => user_access('import nodes')); |
$links[] = array('path' => 'admin/node/import_typepad', 'title' => t('type pad'), 'callback' => 'import_typepad_page', 'weight' => 5, 'access' => user_access('import nodes')); |
| 29 |
$links[] = array('path' => 'admin/node/import_typepad/preview', 'title' => t('type pad'), 'callback' => 'import_typepad_preview', 'weight' => 5, 'access' => user_access('import nodes'), 'type' => MENU_CALLBACK); |
$links[] = array('path' => 'admin/node/import_typepad/preview', 'title' => t('type pad'), 'callback' => 'import_typepad_preview', 'weight' => 5, 'access' => user_access('import nodes'), 'type' => MENU_CALLBACK); |
|
} |
|
| 30 |
return $links; |
return $links; |
| 31 |
} |
} |
| 32 |
|
|