add menu hook

This commit is contained in:
Ibnu Maksum
2022-09-17 22:34:55 +07:00
parent 1c63cd674c
commit 742e0df1f2
8 changed files with 180 additions and 139 deletions

View File

@ -21,6 +21,7 @@ switch ($action) {
case 'change-password-post':
$password = _post('password');
run_hook('customer_change_password'); #HOOK
if($password != ''){
$d = ORM::for_table('tbl_customers')->where('username',$user['username'])->find_one();
if($d){
@ -148,7 +149,7 @@ switch ($action) {
$fullname = _post('fullname');
$address = _post('address');
$phonenumber = _post('phonenumber');
run_hook('customer_edit_profile'); #HOOK
$msg = '';
if(Validator::Length($fullname,31,2) == false){
$msg .= 'Full Name should be between 3 to 30 characters'. '<br>';