switch($option) {
case 'create':
-
+echo "HERER";
// Set reference type to Member
$refType = $this->config['ref_type_numb']['Member'];
$refTypeName = $this->config['ref_type'][$refType];
require_once(GLM_MEMBERS_CONTACTS_PLUGIN_LIB_PATH.'/EasyPassword/EasyPassword.php');
$EasyPassword = new EasyPassword();
$contactInfo['fieldData']['password'] = $EasyPassword->generateEasyPassword('firstlast');
+
+ $view = 'edit.html';
+
break;
case 'addNew':
// Check for new cities being submitted
$this->checkNewCities($contactID);
+ $view = 'edit.html';
+
break;
}
{include file='admin/contacts/header.html'}
{/if}
+ {if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)}
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=contacts&member={$memberID}&option=create" class="button button-primary glm-button glm-right">Add New {$terms.term_member_cap} Contact</a>
+ <br>
+ <br clear="all">
+ {/if}
+
<form action="{$thisUrl}?page={$thisPage}" method="post" id="searchForm">
<input type="hidden" name="prevStart" value="{$prevStart}">
<input type="hidden" name="nextStart" value="{$nextStart}">