blocks_subscrinfo.php ➔ b_xnewsletter_subscrinfo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
1
<?php
2
/**
3
 * ****************************************************************************
4
 *  - A Project by Developers TEAM For Xoops - ( https://xoops.org )
5
 * ****************************************************************************
6
 *  XNEWSLETTER - MODULE FOR XOOPS
7
 *  Copyright (c) 2007 - 2012
8
 *  Goffy ( wedega.com )
9
 *
10
 *  You may not change or alter any portion of this comment or credits
11
 *  of supporting developers from this source code or any supporting
12
 *  source code which is considered copyrighted (c) material of the
13
 *  original comment or credit authors.
14
 *
15
 *  This program is distributed in the hope that it will be useful,
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 *  GNU General Public License for more details.
19
 *  ---------------------------------------------------------------------------
20
 * @copyright  Goffy ( wedega.com )
21
 * @license    GPL 2.0
22
 * @package    xnewsletter
23
 * @author     Goffy ( [email protected] )
24
 *
25
 *  Version : 1 Mon 2012/11/05 14:31:32 :  Exp $
26
 * ****************************************************************************
27
 */
28
// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined");
29
require_once dirname(__DIR__) . '/include/common.php';
30
31
/**
32
 * @param $options
33
 *
34
 * @return array
35
 */
36
function b_xnewsletter_subscrinfo($options)
0 ignored issues
show
Unused Code introduced by
The parameter $options is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
{
38
    xoops_loadLanguage('modinfo', 'xnewsletter');
39
    $unique_id                = uniqid(mt_rand(), true);
40
    $subscrinfo               = [];
41
    $subscrinfo['formname']   = "formsubscrinfo_{$unique_id}";
42
    $subscrinfo['formaction'] = XOOPS_URL . '/modules/xnewsletter/subscription.php';
43
    $subscrinfo['infotext']   = _MI_XNEWSLETTER_SUBSCRINFO_TEXT_BLOCK;
44
    $subscrinfo['buttontext'] = _MI_XNEWSLETTER_SUBSCRIBE;
45
46
    return $subscrinfo;
47
}
48