diff --git a/trunk/change-lead-creator.php b/trunk/change-lead-creator.php index ba0cb88..a505de4 100644 --- a/trunk/change-lead-creator.php +++ b/trunk/change-lead-creator.php @@ -1,31 +1,57 @@ Gravity Forms lead is assigned to. +Author: Katz Web Services, Inc. +Version: 3.5.3 Author URI: http://www.katzwebservices.com + +Copyright 2014 Katz Web Services, Inc. (email: info@katzwebservices.com) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + */ + add_action("gform_entry_info", 'kws_gf_change_entry_creator_form', 10, 2); // If this is already custom-added from katz.co if(!function_exists('kws_gf_change_entry_creator_form')) { function kws_gf_change_entry_creator_form($form_id, $lead) { if(GFCommon::current_user_can_any("gravityforms_edit_entries")) { - $users = get_users(); + + //@since 3.5.3 - filter possible creators + $users = apply_filters( 'kws_gf_entry_creator_users', '', $form_id ); + + if( empty( $users ) ) { + $users = get_users(); + } + $output = ' '; $output .= ''; echo $output; } } -} +} add_action("gform_after_update_entry", 'kws_gf_update_entry_creator', 10, 2); if(!function_exists('kws_gf_update_entry_creator')) { @@ -47,4 +73,4 @@ function kws_gf_update_entry_creator($form, $leadid) { } } } -} \ No newline at end of file +} diff --git a/trunk/gravity-forms-addons.php b/trunk/gravity-forms-addons.php index 6df5e46..47f42c4 100644 --- a/trunk/gravity-forms-addons.php +++ b/trunk/gravity-forms-addons.php @@ -4,7 +4,7 @@ Plugin URI: http://katz.co/gravity-forms-addons/ Description: Turn Gravity Forms into a great WordPress directory...and more! Author: Katz Web Services, Inc. -Version: 3.5.2 +Version: 3.5.3 Author URI: http://www.katzwebservices.com Copyright 2013 Katz Web Services, Inc. (email: info@katzwebservices.com) @@ -32,7 +32,7 @@ class GFDirectory { private static $path = "gravity-forms-addons/gravity-forms-addons.php"; private static $slug = "gravity-forms-addons"; - private static $version = "3.5.2"; + private static $version = "3.5.3"; private static $min_gravityforms_version = "1.5"; public static function directory_defaults($args = array()) {