summaryrefslogtreecommitdiff
path: root/plugins/format.bithtml.php
blob: fd11c25b2798569ed1926008647f53670bb5c817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Bitweaver\Liberty;

/**
 * @version  $Revision$
 * @package  liberty
 * @subpackage plugins_format
 */
global $gLibertySystem;

/**
 * definitions
 */
define( 'PLUGIN_GUID_BITHTML', 'bithtml' );

$pluginParams = [
	'auto_activate'   => true,
	'load_function'   => 'bithtml_parse_data',
	'verify_function' => 'bithtml_verify_data',
	'description'     => 'HTML Syntax Format Parser',
	'edit_label'      => 'HTML',
	'edit_field'      => PLUGIN_GUID_BITHTML,
	'help_page'       => 'HTMLSyntax',
	'plugin_type'     => FORMAT_PLUGIN,
	'linebreak'       => '<br />',
];

$gLibertySystem->registerPlugin( PLUGIN_GUID_BITHTML, $pluginParams );

function bithtml_verify_data( &$pParamHash ) {
	$pParamHash['content_store']['data'] = $pParamHash['edit'];
}

function bithtml_parse_data( &$pParseHash, &$pCommonObject ) {
	return $pParseHash['data'];
}