<?php
// (c) Copyright 2002-2011 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$

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

function module_search_wiki_page_info() {
	return array(
		'name' => tra('Search for Wiki Page'),
		'description' => tra('Search for a wiki page by name.'),
		'prefs' => array('feature_wiki'),
	);
}

function module_search_wiki_page( $mod_reference, $module_params ) {
	
}

<?php
// (c) Copyright 2002-2011 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$

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

function module_search_wiki_page_info() {
	return array(
		'name' => tra('Search for Wiki Page'),
		'description' => tra('Search for a wiki page by name.'),
		'prefs' => array('feature_wiki'),
		'params' => array(
			'exact_match' => array(
				'name' => tra('Exact Match'),
				'description' => tra('Exact match checkbox unchecked by default if set to "n".') . " " . tr('Default: "y".'),
				'filter' => 'alpha'
			),
		),
	);
}

function module_search_wiki_page( $mod_reference, $module_params ) {
	global $smarty;
	$smarty->assign('exact_match', isset($module_params['exact_match']) ? $module_params['exact_match'] : 'y');
}

Allow admin to set exact match checkbox to be unchecked by default.
[ENH] Allow admin to set exact match checkbox to be unchecked by default.

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36158 b456876b-0849-0410-b77d-98878d47e9d5
