/[drupal]/contributions/modules/export_opml/export_opml.module
ViewVC logotype

Diff of /contributions/modules/export_opml/export_opml.module

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

revision 1.3, Tue Nov 29 19:32:42 2005 UTC revision 1.3.4.1, Tue Sep 4 00:14:43 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: $  // $Id: export_opml.module,v 1.3 2005/11/29 19:32:42 puregin Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 19  function export_opml_perm() { Line 19  function export_opml_perm() {
19  function export_opml_link($type, $node = 0, $main = 0) {  function export_opml_link($type, $node = 0, $main = 0) {
20    $links = array();    $links = array();
21    if ($type == 'node' && isset($node->parent)) {    if ($type == 'node' && isset($node->parent)) {
22      if (!$main) {      if (!$teaser) {
23        if (user_access('export books as opml')) {        if (user_access('export books as opml')) {
24          $links[] = l(t('export OPML'),          $links['book_export_opml'] = array(
25                       'book/export/opml/'. $node->nid,            'title' => t('Export OPML'),
26                       array('title' => t('Export this book page and its sub-pages as OPML.')));            'href' => 'book/export/opml/'. $node->nid,
27              'attributes' => array('title' => t('Export this book page and its sub-pages as OPML.'))
28              );
29        }        }
30      }      }
31    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.4.1

  ViewVC Help
Powered by ViewVC 1.1.2