mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10073] Add ACP module to add bbcode text for contact admin info
PHPBB3-10073
This commit is contained in:
parent
deee3be9ef
commit
d3f65cd66e
7 changed files with 323 additions and 0 deletions
136
phpBB/adm/style/acp_contact.html
Normal file
136
phpBB/adm/style/acp_contact.html
Normal file
|
@ -0,0 +1,136 @@
|
||||||
|
<!-- INCLUDE overall_header.html -->
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
|
||||||
|
var form_name = 'acp_contact';
|
||||||
|
var text_name = 'contact_admin_info';
|
||||||
|
var load_draft = false;
|
||||||
|
var upload = false;
|
||||||
|
|
||||||
|
// Define the bbCode tags
|
||||||
|
var bbcode = new Array();
|
||||||
|
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
|
||||||
|
var imageTag = false;
|
||||||
|
|
||||||
|
// Helpline messages
|
||||||
|
var help_line = {
|
||||||
|
b: '{LA_BBCODE_B_HELP}',
|
||||||
|
i: '{LA_BBCODE_I_HELP}',
|
||||||
|
u: '{LA_BBCODE_U_HELP}',
|
||||||
|
q: '{LA_BBCODE_Q_HELP}',
|
||||||
|
c: '{LA_BBCODE_C_HELP}',
|
||||||
|
l: '{LA_BBCODE_L_HELP}',
|
||||||
|
o: '{LA_BBCODE_O_HELP}',
|
||||||
|
p: '{LA_BBCODE_P_HELP}',
|
||||||
|
w: '{LA_BBCODE_W_HELP}',
|
||||||
|
a: '{LA_BBCODE_A_HELP}',
|
||||||
|
s: '{LA_BBCODE_S_HELP}',
|
||||||
|
f: '{LA_BBCODE_F_HELP}',
|
||||||
|
y: '{LA_BBCODE_Y_HELP}',
|
||||||
|
d: '{LA_BBCODE_D_HELP}'
|
||||||
|
<!-- BEGIN custom_tags -->
|
||||||
|
,cb_{custom_tags.BBCODE_ID}{L_COLON} '{custom_tags.A_BBCODE_HELPLINE}'
|
||||||
|
<!-- END custom_tags -->
|
||||||
|
}
|
||||||
|
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
|
<!-- INCLUDEJS {T_ASSETS_PATH}/javascript/editor.js -->
|
||||||
|
|
||||||
|
<a id="maincontent"></a>
|
||||||
|
|
||||||
|
<h1>{L_ACP_CONTACT_SETTINGS}</h1>
|
||||||
|
|
||||||
|
<p>{L_ACP_CONTACT_SETTINGS_EXPLAIN}</p>
|
||||||
|
|
||||||
|
<form id="acp_contact" method="post" action="{U_ACTION}">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{L_GENERAL_OPTIONS}</legend>
|
||||||
|
<dl>
|
||||||
|
<dt><label for="contact_admin_form_enable">{L_CONTACT_US_ENABLE}{L_COLON}</label><br /><span>{L_CONTACT_US_ENABLE_EXPLAIN}</span></dt>
|
||||||
|
<dd>
|
||||||
|
<label><input type="radio" class="radio" id="contact_admin_form_enable" name="contact_admin_form_enable" value="1"<!-- IF CONTACT_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
|
||||||
|
<label><input type="radio" class="radio" name="contact_admin_form_enable" value="0"<!-- IF not CONTACT_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<!-- IF CONTACT_US_INFO_PREVIEW -->
|
||||||
|
<fieldset>
|
||||||
|
<legend>{L_CONTACT_US_INFO_PREVIEW}</legend>
|
||||||
|
<p>{CONTACT_US_INFO_PREVIEW}</p>
|
||||||
|
</fieldset>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>{L_CONTACT_US_INFO}</legend>
|
||||||
|
<p>{L_CONTACT_US_INFO_EXPLAIN}</p>
|
||||||
|
|
||||||
|
<div id="format-buttons">
|
||||||
|
<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
|
||||||
|
<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
|
||||||
|
<input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
|
||||||
|
<!-- IF S_BBCODE_QUOTE -->
|
||||||
|
<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
|
||||||
|
<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
|
||||||
|
<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
|
||||||
|
<input type="button" class="button2" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
|
||||||
|
<!-- IF S_BBCODE_IMG -->
|
||||||
|
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF S_LINKS_ALLOWED -->
|
||||||
|
<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF S_BBCODE_FLASH -->
|
||||||
|
<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
|
||||||
|
<option value="50">{L_FONT_TINY}</option>
|
||||||
|
<option value="85">{L_FONT_SMALL}</option>
|
||||||
|
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
|
||||||
|
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
|
||||||
|
<option value="150">{L_FONT_LARGE}</option>
|
||||||
|
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
|
||||||
|
<option value="200">{L_FONT_HUGE}</option>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- ENDIF -->
|
||||||
|
</select>
|
||||||
|
<!-- BEGIN custom_tags -->
|
||||||
|
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
|
||||||
|
<!-- END custom_tags -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<dl class="responsive-columns">
|
||||||
|
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;">
|
||||||
|
<textarea name="contact_admin_info" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{CONTACT_US_INFO}</textarea>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 5px;">
|
||||||
|
<!-- IF S_BBCODE_ALLOWED -->
|
||||||
|
<label><input type="checkbox" class="radio" name="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF S_SMILIES_ALLOWED -->
|
||||||
|
<label><input type="checkbox" class="radio" name="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF S_LINKS_ALLOWED -->
|
||||||
|
<label><input type="checkbox" class="radio" name="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
</dd>
|
||||||
|
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 10px;"><strong>{L_OPTIONS}{L_COLON} </strong>{BBCODE_STATUS} :: {IMG_STATUS} :: {FLASH_STATUS} :: {URL_STATUS} :: {SMILIES_STATUS}</dd>
|
||||||
|
</dl>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset class="submit-buttons">
|
||||||
|
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
||||||
|
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
|
||||||
|
{S_FORM_TOKEN}
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- INCLUDE overall_footer.html -->
|
118
phpBB/includes/acp/acp_contact.php
Normal file
118
phpBB/includes/acp/acp_contact.php
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package acp
|
||||||
|
* @copyright (c) 2014 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package acp
|
||||||
|
*/
|
||||||
|
class acp_contact
|
||||||
|
{
|
||||||
|
public $u_action;
|
||||||
|
|
||||||
|
public function main($id, $mode)
|
||||||
|
{
|
||||||
|
global $db, $user, $request, $template;
|
||||||
|
global $config, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
$user->add_lang(array('acp/board', 'posting'));
|
||||||
|
|
||||||
|
$this->tpl_name = 'acp_contact';
|
||||||
|
$this->page_title = 'ACP_CONTACT_SETTINGS';
|
||||||
|
$form_name = 'acp_contact';
|
||||||
|
add_form_key($form_name);
|
||||||
|
$error = '';
|
||||||
|
|
||||||
|
if (!function_exists('display_custom_bbcodes'))
|
||||||
|
{
|
||||||
|
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
|
||||||
|
}
|
||||||
|
if (!class_exists('parse_message'))
|
||||||
|
{
|
||||||
|
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
$config_text = new \phpbb\config\db_text($db, CONFIG_TEXT_TABLE);
|
||||||
|
|
||||||
|
$contact_admin_info = $request->variable('contact_admin_info', $config_text->get('contact_admin_info'), true);
|
||||||
|
$contact_admin_info_uid = $config['contact_admin_info_uid'];
|
||||||
|
$contact_admin_info_bitfield= $config['contact_admin_info_bitfield'];
|
||||||
|
$contact_admin_info_flags = $config['contact_admin_info_flags'];
|
||||||
|
|
||||||
|
if ($request->is_set_post('submit') || $request->is_set_post('preview'))
|
||||||
|
{
|
||||||
|
if (!check_form_key($form_name))
|
||||||
|
{
|
||||||
|
$error = $user->lang('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
|
generate_text_for_storage(
|
||||||
|
$contact_admin_info,
|
||||||
|
$contact_admin_info_uid,
|
||||||
|
$contact_admin_info_bitfield,
|
||||||
|
$contact_admin_info_flags,
|
||||||
|
!$request->variable('disable_bbcode', false),
|
||||||
|
!$request->variable('disable_magic_url', false),
|
||||||
|
!$request->variable('disable_smilies', false)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (empty($error) && $request->is_set_post('submit'))
|
||||||
|
{
|
||||||
|
$config->set('contact_admin_form_enable', $request->variable('contact_admin_form_enable', false));
|
||||||
|
|
||||||
|
$config_text->set('contact_admin_info', $contact_admin_info);
|
||||||
|
$config->set('contact_admin_info_uid', $contact_admin_info_uid);
|
||||||
|
$config->set('contact_admin_info_bitfield', $contact_admin_info_bitfield);
|
||||||
|
$config->set('contact_admin_info_flags', $contact_admin_info_flags);
|
||||||
|
|
||||||
|
trigger_error($user->lang['CONTACT_US_INFO_UPDATED'] . adm_back_link($this->u_action));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$contact_admin_info_preview = '';
|
||||||
|
if ($request->is_set_post('preview'))
|
||||||
|
{
|
||||||
|
$contact_admin_info_preview = generate_text_for_display($contact_admin_info, $contact_admin_info_uid, $contact_admin_info_bitfield, $contact_admin_info_flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
$contact_admin_edit = generate_text_for_edit($contact_admin_info, $contact_admin_info_uid, $contact_admin_info_flags);
|
||||||
|
|
||||||
|
$template->assign_vars(array(
|
||||||
|
'ERRORS' => $error,
|
||||||
|
'CONTACT_ENABLED' => $config['contact_admin_form_enable'],
|
||||||
|
|
||||||
|
'CONTACT_US_INFO' => $contact_admin_edit['text'],
|
||||||
|
'CONTACT_US_INFO_PREVIEW' => $contact_admin_info_preview,
|
||||||
|
|
||||||
|
'S_BBCODE_CHECKED' => (!$contact_admin_edit['allow_bbcode']) ? ' checked="checked"' : '',
|
||||||
|
'S_SMILIES_CHECKED' => (!$contact_admin_edit['allow_smilies']) ? ' checked="checked"' : '',
|
||||||
|
'S_MAGIC_URL_CHECKED' => (!$contact_admin_edit['allow_urls']) ? ' checked="checked"' : '',
|
||||||
|
|
||||||
|
'BBCODE_STATUS' => $user->lang('BBCODE_IS_ON', '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>'),
|
||||||
|
'SMILIES_STATUS' => $user->lang['SMILIES_ARE_ON'],
|
||||||
|
'IMG_STATUS' => $user->lang['IMAGES_ARE_ON'],
|
||||||
|
'FLASH_STATUS' => $user->lang['FLASH_IS_ON'],
|
||||||
|
'URL_STATUS' => $user->lang['URL_IS_ON'],
|
||||||
|
|
||||||
|
'S_BBCODE_ALLOWED' => true,
|
||||||
|
'S_SMILIES_ALLOWED' => true,
|
||||||
|
'S_BBCODE_IMG' => true,
|
||||||
|
'S_BBCODE_FLASH' => true,
|
||||||
|
'S_LINKS_ALLOWED' => true,
|
||||||
|
));
|
||||||
|
|
||||||
|
// Assigning custom bbcodes
|
||||||
|
display_custom_bbcodes();
|
||||||
|
}
|
||||||
|
}
|
26
phpBB/includes/acp/info/acp_contact.php
Normal file
26
phpBB/includes/acp/info/acp_contact.php
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package acp
|
||||||
|
* @copyright (c) 2014 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package module_install
|
||||||
|
*/
|
||||||
|
class acp_contact_info
|
||||||
|
{
|
||||||
|
public function module()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'filename' => 'acp_contact',
|
||||||
|
'title' => 'ACP_CONTACT',
|
||||||
|
'version' => '1.0.0',
|
||||||
|
'modes' => array(
|
||||||
|
'contact' => array('title' => 'ACP_CONTACT_SETTINGS', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -233,6 +233,7 @@ define('BBCODES_TABLE', $table_prefix . 'bbcodes');
|
||||||
define('BOOKMARKS_TABLE', $table_prefix . 'bookmarks');
|
define('BOOKMARKS_TABLE', $table_prefix . 'bookmarks');
|
||||||
define('BOTS_TABLE', $table_prefix . 'bots');
|
define('BOTS_TABLE', $table_prefix . 'bots');
|
||||||
define('CONFIG_TABLE', $table_prefix . 'config');
|
define('CONFIG_TABLE', $table_prefix . 'config');
|
||||||
|
define('CONFIG_TEXT_TABLE', $table_prefix . 'config_text');
|
||||||
define('CONFIRM_TABLE', $table_prefix . 'confirm');
|
define('CONFIRM_TABLE', $table_prefix . 'confirm');
|
||||||
define('DISALLOW_TABLE', $table_prefix . 'disallow');
|
define('DISALLOW_TABLE', $table_prefix . 'disallow');
|
||||||
define('DRAFTS_TABLE', $table_prefix . 'drafts');
|
define('DRAFTS_TABLE', $table_prefix . 'drafts');
|
||||||
|
|
|
@ -352,6 +352,19 @@ $lang = array_merge($lang, array(
|
||||||
'SESSION_LENGTH_EXPLAIN' => 'Sessions will expire after this time, in seconds.',
|
'SESSION_LENGTH_EXPLAIN' => 'Sessions will expire after this time, in seconds.',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Contact Settings
|
||||||
|
$lang = array_merge($lang, array(
|
||||||
|
'ACP_CONTACT_SETTINGS_EXPLAIN' => 'Here you can enable and disable the “Contact Us” page and also add a text that is displayed on the page.',
|
||||||
|
|
||||||
|
'CONTACT_US_ENABLE' => 'Enable “Contact Us” page',
|
||||||
|
'CONTACT_US_ENABLE_EXPLAIN' => 'This page allows users to send emails to board administrators',
|
||||||
|
|
||||||
|
'CONTACT_US_INFO' => '“Contact Us” information',
|
||||||
|
'CONTACT_US_INFO_EXPLAIN' => 'The message is displayed on the “Contact Us” page',
|
||||||
|
'CONTACT_US_INFO_PREVIEW' => '“Contact Us” information - Preview',
|
||||||
|
'CONTACT_US_INFO_UPDATED' => '“Contact Us” information has been updated.',
|
||||||
|
));
|
||||||
|
|
||||||
// Load Settings
|
// Load Settings
|
||||||
$lang = array_merge($lang, array(
|
$lang = array_merge($lang, array(
|
||||||
'ACP_LOAD_SETTINGS_EXPLAIN' => 'Here you can enable and disable certain board functions to reduce the amount of processing required. On most servers there is no need to disable any functions. However on certain systems or in shared hosting environments it may be beneficial to disable capabilities you do not really need. You can also specify limits for system load and active sessions beyond which the board will go offline.',
|
'ACP_LOAD_SETTINGS_EXPLAIN' => 'Here you can enable and disable certain board functions to reduce the amount of processing required. On most servers there is no need to disable any functions. However on certain systems or in shared hosting environments it may be beneficial to disable capabilities you do not really need. You can also specify limits for system load and active sessions beyond which the board will go offline.',
|
||||||
|
|
|
@ -75,6 +75,8 @@ $lang = array_merge($lang, array(
|
||||||
'ACP_CAT_USERS' => 'Users',
|
'ACP_CAT_USERS' => 'Users',
|
||||||
'ACP_CLIENT_COMMUNICATION' => 'Client communication',
|
'ACP_CLIENT_COMMUNICATION' => 'Client communication',
|
||||||
'ACP_COOKIE_SETTINGS' => 'Cookie settings',
|
'ACP_COOKIE_SETTINGS' => 'Cookie settings',
|
||||||
|
'ACP_CONTACT' => 'Contact page',
|
||||||
|
'ACP_CONTACT_SETTINGS' => '“Contact Us” settings',
|
||||||
'ACP_CRITICAL_LOGS' => 'Error log',
|
'ACP_CRITICAL_LOGS' => 'Error log',
|
||||||
'ACP_CUSTOM_PROFILE_FIELDS' => 'Custom profile fields',
|
'ACP_CUSTOM_PROFILE_FIELDS' => 'Custom profile fields',
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package migration
|
||||||
|
* @copyright (c) 2014 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace phpbb\db\migration\data\v310;
|
||||||
|
|
||||||
|
class contact_admin_acp_module extends \phpbb\db\migration\migration
|
||||||
|
{
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('module.add', array(
|
||||||
|
'acp',
|
||||||
|
'ACP_BOARD_CONFIGURATION',
|
||||||
|
array(
|
||||||
|
'module_basename' => 'acp_contact',
|
||||||
|
'modes' => array('contact'),
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue