Code Duplication    Length = 12-13 lines in 4 locations

plugins/csv.php 1 location

@@ 34-46 (lines=13) @@
31
/**
32
 * @return array
33
 */
34
function xnewsletter_plugin_getinfo_csv() {
35
    global $xoopsDB;
36
37
    $pluginInfo = array();
38
    $pluginInfo['name'] = "csv";
39
    $pluginInfo['icon'] = XNEWSLETTER_URL . "/plugins/csv.png";
40
    //$pluginInfo['modulepath'] = XNEWSLETTER_ROOT_PATH . "/plugins/csv.php";
41
    $pluginInfo['tables'][0] = "";
42
    $pluginInfo['descr'] = "Import CSV";
43
    $pluginInfo['hasform'] = 1;
44
45
    return $pluginInfo;
46
}
47
48
/**
49
 * @param $cat_id

plugins/evennews.php 1 location

@@ 34-46 (lines=13) @@
31
/**
32
 * @return array
33
 */
34
function xnewsletter_plugin_getinfo_evennews() {
35
    global $xoopsDB;
36
37
    $pluginInfo = array();
38
    $pluginInfo['name'] = "evennews";
39
    $pluginInfo['icon'] = XOOPS_URL . "/modules/evennews/images/logo.png";
40
    //$pluginInfo['modulepath'] = XOOPS_ROOT_PATH . "/modules/evennews/xoops_version.php";
41
    $pluginInfo['tables'][0] = $xoopsDB->prefix("evennews_members");
42
    $pluginInfo['descr'] = "Import from evennews";
43
    $pluginInfo['hasform'] = 0;
44
45
    return $pluginInfo;
46
}
47
48
/**
49
 * @param $cat_id

plugins/rmbulletin.php 1 location

@@ 34-46 (lines=13) @@
31
/**
32
 * @return array
33
 */
34
function xnewsletter_plugin_getinfo_rmbulletin() {
35
    global $xoopsDB;
36
37
    $pluginInfo = array();
38
    $pluginInfo['name'] = "rmbulletin";
39
    $pluginInfo['icon'] = XOOPS_URL . "/modules/rmbulletin/images/logo.png";
40
    //$pluginInfo['modulepath'] = XOOPS_ROOT_PATH . "/modules/rmbulletin/xoops_version.php";
41
    $pluginInfo['tables'][0] = $xoopsDB->prefix("rmb_users");
42
    $pluginInfo['descr'] = "Import from RM-Bulletin";
43
    $pluginInfo['hasform'] = 0;
44
45
    return $pluginInfo;
46
}
47
48
/**
49
 * @param $cat_id

plugins/simplenewsletter.php 1 location

@@ 35-46 (lines=12) @@
32
/**
33
 * @return array
34
 */
35
function xnewsletter_plugin_getinfo_simplenewsletter() {
36
    global $xoopsDB;
37
38
    $pluginInfo = array();
39
    $pluginInfo['name'] = "simplenewsletter";
40
    $pluginInfo['icon'] = XOOPS_URL . "/modules/simplenewsletter/images/news_subscribe.png";
41
    $pluginInfo['tables'][0] = $xoopsDB->prefix("simplenewsletter_members");
42
    $pluginInfo['descr'] = "Import from simplenewsletter";
43
    $pluginInfo['hasform'] = 0;
44
45
    return $pluginInfo;
46
}
47
48
/**
49
 * @param $cat_id