| 1 |
<?php |
<?php |
| 2 |
// $Id: drutex_linebreak.inc,v 1.8 2006/09/06 02:25:41 dfg Exp $ |
// $Id: drutex_linebreak.inc,v 1.9 2007/04/25 14:46:28 darthsteven Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 16 |
return (object) array( |
return (object) array( |
| 17 |
'title' => t('Line break converter'), |
'title' => t('Line break converter'), |
| 18 |
'description' => check_plain(t('Converts line breaks into HTML (i.e. <br /> and <p> tags).')), |
'description' => check_plain(t('Converts line breaks into HTML (i.e. <br /> and <p> tags).')), |
| 19 |
'toggle' => true, |
'toggle' => TRUE, |
| 20 |
'weight' => 12 |
'weight' => 12 |
| 21 |
); |
); |
| 22 |
} |
} |
| 23 |
|
|
| 24 |
/** |
/** |
| 25 |
|
* Implementation of subhook_filter_tips(). |
| 26 |
|
*/ |
| 27 |
|
|
| 28 |
|
function drutex_linebreak_filter_tips($delta, $format, $long = FALSE) { |
| 29 |
|
return t('Line and paragraphs break automatically.'); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
* Implementation of subhook_defaults(). |
* Implementation of subhook_defaults(). |
| 34 |
*/ |
*/ |
| 35 |
function drutex_linebreak_defaults() { |
function drutex_linebreak_defaults() { |
| 36 |
$D['drutex_linebreak_active'] = true; |
$D['drutex_linebreak_active'] = TRUE; |
| 37 |
$D['drutex_linebreak_behaviour'] = 'drupal'; |
$D['drutex_linebreak_behaviour'] = 'drupal'; |
| 38 |
|
|
| 39 |
return $D; |
return $D; |