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

Diff of /contributions/modules/marksmarty/marksmarty.module

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

revision 1.18, Sat Oct 7 19:28:17 2006 UTC revision 1.18.2.1, Wed Feb 20 18:11:46 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: marksmarty.module,v 1.17 2006/07/15 20:35:19 teradome Exp $  // $Id: marksmarty.module,v 1.18 2006/10/07 19:28:17 teradome Exp $
3    
4  /********************************************************************  /********************************************************************
5   * Drupal Hooks   * Drupal Hooks
# Line 60  function marksmarty_help($in_section = ' Line 60  function marksmarty_help($in_section = '
60   ********************************************************************/   ********************************************************************/
61    
62  function _marksmarty_process($text, $format) {  function _marksmarty_process($text, $format) {
63    require_once(dirname(__FILE__) . '/markdown.php');    if (!empty($text) && variable_get("marksmarty_is_markdown_on_$format", 1) == 1) {
64    require_once(dirname(__FILE__) . '/smartypants.php');      require_once(dirname(__FILE__) . '/markdown.php');
   if (variable_get("marksmarty_is_markdown_on_$format", 1) == 1) {  
65      $text = Markdown($text);      $text = Markdown($text);
66    }    }
67    if (variable_get("marksmarty_is_smarty_on_$format", 1) == 1) {    if (!empty($text) && variable_get("marksmarty_is_smarty_on_$format", 1) == 1) {
68      global $smartypants_attr;      global $smartypants_attr;
69        require_once(dirname(__FILE__) . '/smartypants.php');
70    
71      $smartypants_attr = variable_get("marksmarty_smarty_hyphens_$format", 0) + 1;      $smartypants_attr = variable_get("marksmarty_smarty_hyphens_$format", 0) + 1;
72      $text = SmartyPants($text);      $text = SmartyPants($text);
73    }    }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.18.2.1

  ViewVC Help
Powered by ViewVC 1.1.2