| @@ -339,8 +339,18 @@ | ||
| 339 | 339 | add_filter('frm_row_actions', array($this, 'hook_formidable_row_actions'), 10, 2); |
| 340 | 340 | |
| 341 | 341 | // frm-graph |
| 342 | 342 | add_filter('frm_graph_shortcode_custom_html', array($this, 'filter_frm_graph_shortcode_custom_html'), 99, 2); |
| 343 | + | |
| 344 | + // extension hooks | |
| 345 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 346 | + $hooks[$this->info['key']] = [ | |
| 347 | + 'hook_formidable_entry_view' => __('WP Admin Entry View', 'e2pdf'), | |
| 348 | + 'hook_formidable_entry_edit' => __('WP Admin Entry Edit', 'e2pdf'), | |
| 349 | + 'hook_formidable_row_actions' => __('WP Admin Entry Row Actions', 'e2pdf') | |
| 350 | + ]; | |
| 351 | + return $hooks; | |
| 352 | + }); | |
| 343 | 353 | } |
| 344 | 354 | |
| 345 | 355 | public function action_frm_success_action() { |
| 346 | 356 | $this->set('iframe_download', true); |
| @@ -907,8 +917,14 @@ | ||
| 907 | 917 | if ($field_key !== false) { |
| 908 | 918 | $replace_with = ''; |
| 909 | 919 | } |
| 910 | 920 | } |
| 921 | + } | |
| 922 | + } | |
| 923 | + | |
| 924 | + if ($field->type === 'signature' && is_array($replace_with)) { | |
| 925 | + if (!empty($replace_with['format']) && $replace_with['format'] == 'drawn' && !empty($replace_with['output'])) { | |
| 926 | + return $replace_with['output']; | |
| 911 | 927 | } |
| 912 | 928 | } |
| 913 | 929 | |
| 914 | 930 | return $replace_with; |