Skip to content

Commit

Permalink
hooks added, bender updated
Browse files Browse the repository at this point in the history
  • Loading branch information
conejoninja committed Aug 27, 2014
1 parent 381c04b commit 98f8a84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion oc-content/themes/bender
Submodule bender updated 1 files
+1 −0 user-profile.php
2 changes: 2 additions & 0 deletions oc-includes/osclass/UserActions.php
Expand Up @@ -80,6 +80,7 @@ function add()
}
}

$flash_error = osc_apply_filter('user_add_flash_error', $flash_error);
if($flash_error!='') {
osc_run_hook('user_register_failed', $error);
return $flash_error;
Expand Down Expand Up @@ -168,6 +169,7 @@ function edit($userId)
}
}

$flash_error = osc_apply_filter('user_edit_flash_error', $flash_error, $userId);
if($flash_error!='') {
return $flash_error;
}
Expand Down
1 change: 1 addition & 0 deletions oc-includes/osclass/gui/user-profile.php
Expand Up @@ -108,6 +108,7 @@ function custom_meta_title($data){
<?php UserForm::info_textarea('s_info', osc_locale_code(), @$osc_user['locale'][osc_locale_code()]['s_info']); ?>
</div>
</div>
<?php osc_run_hook('user_profile_form', osc_user()); ?>
<div class="control-group">
<div class="controls">
<button type="submit" class="ui-button ui-button-middle ui-button-main"><?php _e("Update", 'bender');?></button>
Expand Down

0 comments on commit 98f8a84

Please sign in to comment.