<?php
// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_payment_info() {
	return array(
		'name' => tra('Payment'),
		'description' => tra('Display a payment request\'s details based on the user\'s privileges and the state of the payment. The payment details may include the payment options.'),
		'prefs' => array( 'wikiplugin_payment', 'payment_feature' ),
		'params' => array(
			'id' => array(
				'required' => true,
				'name' => tra('Payment Request Number'),
				'description' => tra('Unique identifier of the payment request'),
				'filter' => 'digits',
				'default' => '',
			)
		)
	);
}

function wikiplugin_payment( $data, $params ) {
	global $smarty;

	require_once 'lib/smarty_tiki/function.payment.php';
	return '^~np~' . smarty_function_payment( $params, $smarty ) . '~/np~^';
}


<?php
// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_payment_info() {
	return array(
		'name' => tra('Payment'),
		'description' => tra('Display a payment request\'s details based on the user\'s privileges and the state of the payment. The payment details may include the payment options.'),
		'prefs' => array( 'wikiplugin_payment', 'payment_feature' ),
		'params' => array(
			'id' => array(
				'required' => true,
				'name' => tra('Payment request number'),
				'description' => tra('Unique identifier'),
				'filter' => 'digits',
			),
		),
	);
}

function wikiplugin_payment( $data, $params ) {
	global $smarty;

	require_once 'lib/smarty_tiki/function.payment.php';
	return '^~np~' . smarty_function_payment( $params, $smarty ) . '~/np~^';
}


--- 
+++ 
@@ -13,11 +13,12 @@
 		'params' => array(
 			'id' => array(
 				'required' => true,
-				'name' => tra('Payment request number'),
-				'description' => tra('Unique identifier'),
+				'name' => tra('Payment Request Number'),
+				'description' => tra('Unique identifier of the payment request'),
 				'filter' => 'digits',
-			),
-		),
+				'default' => '',
+			)
+		)
 	);
 }
 
Add default fields and other cleanup to plugin info for use in plugin edit popup and plugin manager

git-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@31090 b456876b-0849-0410-b77d-98878d47e9d5
