@@ 939-953 (lines=15) @@ | ||
936 | // add it |
|
937 | switch ( $QST_system ) { |
|
938 | ||
939 | case 'fname': |
|
940 | $QST_values = array( |
|
941 | 'QST_display_text' => __( 'First Name', 'event_espresso' ), |
|
942 | 'QST_admin_label' => __( 'First Name - System Question', 'event_espresso' ), |
|
943 | 'QST_system' => 'fname', |
|
944 | 'QST_type' => 'TEXT', |
|
945 | 'QST_required' => 1, |
|
946 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
947 | 'QST_order' => 1, |
|
948 | 'QST_admin_only' => 0, |
|
949 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
950 | 'QST_wp_user' => self::get_default_creator_id(), |
|
951 | 'QST_deleted' => 0 |
|
952 | ); |
|
953 | break; |
|
954 | ||
955 | case 'lname': |
|
956 | $QST_values = array( |
|
@@ 955-969 (lines=15) @@ | ||
952 | ); |
|
953 | break; |
|
954 | ||
955 | case 'lname': |
|
956 | $QST_values = array( |
|
957 | 'QST_display_text' => __( 'Last Name', 'event_espresso' ), |
|
958 | 'QST_admin_label' => __( 'Last Name - System Question', 'event_espresso' ), |
|
959 | 'QST_system' => 'lname', |
|
960 | 'QST_type' => 'TEXT', |
|
961 | 'QST_required' => 1, |
|
962 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
963 | 'QST_order' => 2, |
|
964 | 'QST_admin_only' => 0, |
|
965 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
966 | 'QST_wp_user' => self::get_default_creator_id(), |
|
967 | 'QST_deleted' => 0 |
|
968 | ); |
|
969 | break; |
|
970 | ||
971 | case 'email': |
|
972 | $QST_values = array( |
|
@@ 971-985 (lines=15) @@ | ||
968 | ); |
|
969 | break; |
|
970 | ||
971 | case 'email': |
|
972 | $QST_values = array( |
|
973 | 'QST_display_text' => __( 'Email Address', 'event_espresso' ), |
|
974 | 'QST_admin_label' => __( 'Email Address - System Question', 'event_espresso' ), |
|
975 | 'QST_system' => 'email', |
|
976 | 'QST_type' => 'TEXT', |
|
977 | 'QST_required' => 1, |
|
978 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
979 | 'QST_order' => 3, |
|
980 | 'QST_admin_only' => 0, |
|
981 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
982 | 'QST_wp_user' => self::get_default_creator_id(), |
|
983 | 'QST_deleted' => 0 |
|
984 | ); |
|
985 | break; |
|
986 | ||
987 | case 'address': |
|
988 | $QST_values = array( |
|
@@ 987-1001 (lines=15) @@ | ||
984 | ); |
|
985 | break; |
|
986 | ||
987 | case 'address': |
|
988 | $QST_values = array( |
|
989 | 'QST_display_text' => __( 'Address', 'event_espresso' ), |
|
990 | 'QST_admin_label' => __( 'Address - System Question', 'event_espresso' ), |
|
991 | 'QST_system' => 'address', |
|
992 | 'QST_type' => 'TEXT', |
|
993 | 'QST_required' => 0, |
|
994 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
995 | 'QST_order' => 4, |
|
996 | 'QST_admin_only' => 0, |
|
997 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
998 | 'QST_wp_user' => self::get_default_creator_id(), |
|
999 | 'QST_deleted' => 0 |
|
1000 | ); |
|
1001 | break; |
|
1002 | ||
1003 | case 'address2': |
|
1004 | $QST_values = array( |
|
@@ 1003-1017 (lines=15) @@ | ||
1000 | ); |
|
1001 | break; |
|
1002 | ||
1003 | case 'address2': |
|
1004 | $QST_values = array( |
|
1005 | 'QST_display_text' => __( 'Address2', 'event_espresso' ), |
|
1006 | 'QST_admin_label' => __( 'Address2 - System Question', 'event_espresso' ), |
|
1007 | 'QST_system' => 'address2', |
|
1008 | 'QST_type' => 'TEXT', |
|
1009 | 'QST_required' => 0, |
|
1010 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1011 | 'QST_order' => 5, |
|
1012 | 'QST_admin_only' => 0, |
|
1013 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1014 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1015 | 'QST_deleted' => 0 |
|
1016 | ); |
|
1017 | break; |
|
1018 | ||
1019 | case 'city': |
|
1020 | $QST_values = array( |
|
@@ 1019-1033 (lines=15) @@ | ||
1016 | ); |
|
1017 | break; |
|
1018 | ||
1019 | case 'city': |
|
1020 | $QST_values = array( |
|
1021 | 'QST_display_text' => __( 'City', 'event_espresso' ), |
|
1022 | 'QST_admin_label' => __( 'City - System Question', 'event_espresso' ), |
|
1023 | 'QST_system' => 'city', |
|
1024 | 'QST_type' => 'TEXT', |
|
1025 | 'QST_required' => 0, |
|
1026 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1027 | 'QST_order' => 6, |
|
1028 | 'QST_admin_only' => 0, |
|
1029 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1030 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1031 | 'QST_deleted' => 0 |
|
1032 | ); |
|
1033 | break; |
|
1034 | ||
1035 | case 'state': |
|
1036 | $QST_values = array( |
|
@@ 1065-1079 (lines=15) @@ | ||
1062 | ); |
|
1063 | break; |
|
1064 | ||
1065 | case 'zip': |
|
1066 | $QST_values = array( |
|
1067 | 'QST_display_text' => __( 'Zip/Postal Code', 'event_espresso' ), |
|
1068 | 'QST_admin_label' => __( 'Zip/Postal Code - System Question', 'event_espresso' ), |
|
1069 | 'QST_system' => 'zip', |
|
1070 | 'QST_type' => 'TEXT', |
|
1071 | 'QST_required' => 0, |
|
1072 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1073 | 'QST_order' => 9, |
|
1074 | 'QST_admin_only' => 0, |
|
1075 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1076 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1077 | 'QST_deleted' => 0 |
|
1078 | ); |
|
1079 | break; |
|
1080 | ||
1081 | case 'phone': |
|
1082 | $QST_values = array( |
|
@@ 1081-1095 (lines=15) @@ | ||
1078 | ); |
|
1079 | break; |
|
1080 | ||
1081 | case 'phone': |
|
1082 | $QST_values = array( |
|
1083 | 'QST_display_text' => __( 'Phone Number', 'event_espresso' ), |
|
1084 | 'QST_admin_label' => __( 'Phone Number - System Question', 'event_espresso' ), |
|
1085 | 'QST_system' => 'phone', |
|
1086 | 'QST_type' => 'TEXT', |
|
1087 | 'QST_required' => 0, |
|
1088 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1089 | 'QST_order' => 10, |
|
1090 | 'QST_admin_only' => 0, |
|
1091 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1092 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1093 | 'QST_deleted' => 0 |
|
1094 | ); |
|
1095 | break; |
|
1096 | ||
1097 | } |
|
1098 | if ( ! empty( $QST_values )) { |