Show countries for delivery process forms. Refactor countries. #76

Merged
akrdzic merged 3 commits from forms-filtering into development 2018-11-27 13:08:23 +01:00
Showing only changes of commit 2b688e8a5e - Show all commits

View File

@@ -90,24 +90,6 @@ class Wiaas_Admin_Delivery_Process_List {
* @return mixed
*/
public static function filter_gform_form_actions($actions, $form_id) {
$form_details = GFAPI::get_form($form_id);
$delivery_settings = rgar($form_details, 'wiaas_delivery_process');
if (empty($delivery_settings)) {
return $actions;
}
$type = $delivery_settings['delivery_form_type'];
$is_action = $type === 'action';
if (!$is_action) {
unset($actions['entries']);
}
unset($actions['entries']);
unset($actions['preview']);
unset($actions['edit']);