Created
August 6, 2013 22:18
-
-
Save thinkstylestudio/6169242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gravity Forms | |
add_action('admin_init','add_grav_forms'); | |
function add_grav_forms(){ | |
$role = get_role('editor'); | |
$role->add_cap('gform_full_access'); | |
} | |
add_filter("gform_validation_message", "change_message", 10, 2); | |
function change_message($message, $form) { | |
return '<div class=\"validation_error\">Ocorreu um erro na sua submissão. <br/>Os erros foram assinalados em baixo.</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment