| 1 |
<?php |
<?php |
| 2 |
// $Id: $ |
// $Id: export_dxml.module,v 1.3 2005/11/29 19:28:10 puregin Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 23 |
if ($type == 'node' && isset($node->parent)) { |
if ($type == 'node' && isset($node->parent)) { |
| 24 |
if (!$main) { |
if (!$main) { |
| 25 |
if (user_access('export books as dxml')) { |
if (user_access('export books as dxml')) { |
| 26 |
$links[] = l(t('export Drupal XML'), |
$links['book_export_dxml'] = array( |
| 27 |
'book/export/dxml/'. $node->nid, |
'title' => t('Export Drupal XML'), |
| 28 |
array('title' => t('Export this book page and its sub-pages as Drupal XML (suitable for re-import)'))); |
'href' => 'book/export/dxml/'. $node->nid, |
| 29 |
|
'attributes' => array('title' => t('Export this book page and its sub-pages as Drupal XML (suitable for re-import)')) |
| 30 |
|
); |
| 31 |
} |
} |
| 32 |
} |
} |
| 33 |
} |
} |