@@ 957-971 (lines=15) @@ | ||
954 | // add it |
|
955 | switch ( $QST_system ) { |
|
956 | ||
957 | case 'fname': |
|
958 | $QST_values = array( |
|
959 | 'QST_display_text' => __( 'First Name', 'event_espresso' ), |
|
960 | 'QST_admin_label' => __( 'First Name - System Question', 'event_espresso' ), |
|
961 | 'QST_system' => 'fname', |
|
962 | 'QST_type' => 'TEXT', |
|
963 | 'QST_required' => 1, |
|
964 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
965 | 'QST_order' => 1, |
|
966 | 'QST_admin_only' => 0, |
|
967 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
968 | 'QST_wp_user' => self::get_default_creator_id(), |
|
969 | 'QST_deleted' => 0 |
|
970 | ); |
|
971 | break; |
|
972 | ||
973 | case 'lname': |
|
974 | $QST_values = array( |
|
@@ 973-987 (lines=15) @@ | ||
970 | ); |
|
971 | break; |
|
972 | ||
973 | case 'lname': |
|
974 | $QST_values = array( |
|
975 | 'QST_display_text' => __( 'Last Name', 'event_espresso' ), |
|
976 | 'QST_admin_label' => __( 'Last Name - System Question', 'event_espresso' ), |
|
977 | 'QST_system' => 'lname', |
|
978 | 'QST_type' => 'TEXT', |
|
979 | 'QST_required' => 1, |
|
980 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
981 | 'QST_order' => 2, |
|
982 | 'QST_admin_only' => 0, |
|
983 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
984 | 'QST_wp_user' => self::get_default_creator_id(), |
|
985 | 'QST_deleted' => 0 |
|
986 | ); |
|
987 | break; |
|
988 | ||
989 | case 'email': |
|
990 | $QST_values = array( |
|
@@ 989-1003 (lines=15) @@ | ||
986 | ); |
|
987 | break; |
|
988 | ||
989 | case 'email': |
|
990 | $QST_values = array( |
|
991 | 'QST_display_text' => __( 'Email Address', 'event_espresso' ), |
|
992 | 'QST_admin_label' => __( 'Email Address - System Question', 'event_espresso' ), |
|
993 | 'QST_system' => 'email', |
|
994 | 'QST_type' => 'EMAIL', |
|
995 | 'QST_required' => 1, |
|
996 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
997 | 'QST_order' => 3, |
|
998 | 'QST_admin_only' => 0, |
|
999 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1000 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1001 | 'QST_deleted' => 0 |
|
1002 | ); |
|
1003 | break; |
|
1004 | ||
1005 | case 'address': |
|
1006 | $QST_values = array( |
|
@@ 1005-1019 (lines=15) @@ | ||
1002 | ); |
|
1003 | break; |
|
1004 | ||
1005 | case 'address': |
|
1006 | $QST_values = array( |
|
1007 | 'QST_display_text' => __( 'Address', 'event_espresso' ), |
|
1008 | 'QST_admin_label' => __( 'Address - System Question', 'event_espresso' ), |
|
1009 | 'QST_system' => 'address', |
|
1010 | 'QST_type' => 'TEXT', |
|
1011 | 'QST_required' => 0, |
|
1012 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1013 | 'QST_order' => 4, |
|
1014 | 'QST_admin_only' => 0, |
|
1015 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1016 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1017 | 'QST_deleted' => 0 |
|
1018 | ); |
|
1019 | break; |
|
1020 | ||
1021 | case 'address2': |
|
1022 | $QST_values = array( |
|
@@ 1021-1035 (lines=15) @@ | ||
1018 | ); |
|
1019 | break; |
|
1020 | ||
1021 | case 'address2': |
|
1022 | $QST_values = array( |
|
1023 | 'QST_display_text' => __( 'Address2', 'event_espresso' ), |
|
1024 | 'QST_admin_label' => __( 'Address2 - System Question', 'event_espresso' ), |
|
1025 | 'QST_system' => 'address2', |
|
1026 | 'QST_type' => 'TEXT', |
|
1027 | 'QST_required' => 0, |
|
1028 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1029 | 'QST_order' => 5, |
|
1030 | 'QST_admin_only' => 0, |
|
1031 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1032 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1033 | 'QST_deleted' => 0 |
|
1034 | ); |
|
1035 | break; |
|
1036 | ||
1037 | case 'city': |
|
1038 | $QST_values = array( |
|
@@ 1037-1051 (lines=15) @@ | ||
1034 | ); |
|
1035 | break; |
|
1036 | ||
1037 | case 'city': |
|
1038 | $QST_values = array( |
|
1039 | 'QST_display_text' => __( 'City', 'event_espresso' ), |
|
1040 | 'QST_admin_label' => __( 'City - System Question', 'event_espresso' ), |
|
1041 | 'QST_system' => 'city', |
|
1042 | 'QST_type' => 'TEXT', |
|
1043 | 'QST_required' => 0, |
|
1044 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1045 | 'QST_order' => 6, |
|
1046 | 'QST_admin_only' => 0, |
|
1047 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1048 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1049 | 'QST_deleted' => 0 |
|
1050 | ); |
|
1051 | break; |
|
1052 | ||
1053 | case 'state': |
|
1054 | $QST_values = array( |
|
@@ 1083-1097 (lines=15) @@ | ||
1080 | ); |
|
1081 | break; |
|
1082 | ||
1083 | case 'zip': |
|
1084 | $QST_values = array( |
|
1085 | 'QST_display_text' => __( 'Zip/Postal Code', 'event_espresso' ), |
|
1086 | 'QST_admin_label' => __( 'Zip/Postal Code - System Question', 'event_espresso' ), |
|
1087 | 'QST_system' => 'zip', |
|
1088 | 'QST_type' => 'TEXT', |
|
1089 | 'QST_required' => 0, |
|
1090 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1091 | 'QST_order' => 9, |
|
1092 | 'QST_admin_only' => 0, |
|
1093 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1094 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1095 | 'QST_deleted' => 0 |
|
1096 | ); |
|
1097 | break; |
|
1098 | ||
1099 | case 'phone': |
|
1100 | $QST_values = array( |
|
@@ 1099-1113 (lines=15) @@ | ||
1096 | ); |
|
1097 | break; |
|
1098 | ||
1099 | case 'phone': |
|
1100 | $QST_values = array( |
|
1101 | 'QST_display_text' => __( 'Phone Number', 'event_espresso' ), |
|
1102 | 'QST_admin_label' => __( 'Phone Number - System Question', 'event_espresso' ), |
|
1103 | 'QST_system' => 'phone', |
|
1104 | 'QST_type' => 'TEXT', |
|
1105 | 'QST_required' => 0, |
|
1106 | 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
1107 | 'QST_order' => 10, |
|
1108 | 'QST_admin_only' => 0, |
|
1109 | 'QST_max' => EEM_Question::instance()->absolute_max_for_system_question( $QST_system ), |
|
1110 | 'QST_wp_user' => self::get_default_creator_id(), |
|
1111 | 'QST_deleted' => 0 |
|
1112 | ); |
|
1113 | break; |
|
1114 | ||
1115 | } |
|
1116 | if ( ! empty( $QST_values )) { |