Remove unused code
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user