GravityView  2.10.1
The best, easiest way to display Gravity Forms entries on your website.
delete_link.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @global array $entry
4  * @global array $form
5  * @global array $field_settings
6  */
7 
9 
10 $view_id = $gravityview_view->getViewId();
11 
12 extract( $gravityview_view->getCurrentField() );
13 
14 // Only show the link to logged-in users with the right caps.
16  return;
17 }
18 
19 $link_text = empty( $field_settings['delete_link'] ) ? __('Delete Entry', 'gravityview') : $field_settings['delete_link'];
20 
21 $link_text = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ) );
22 
24 
25 $attributes = array(
27 );
28 
static get_delete_link( $entry, $view_id=0, $post_id=null)
Generate a nonce link with the base URL of the current View embed.
static getInstance( $passed_post=NULL)
$field_settings['content']
Definition: custom.php:27
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
if(gravityview() ->plugin->is_GF_25()) $form
static get_confirm_dialog()
Get the onclick attribute for the confirm dialogs that warns users before they delete an entry...
static check_user_cap_delete_entry( $entry, $field=array(), $view=0)
checks if user has permissions to view the link or delete a specific entry
static replace_variables( $text, $form=array(), $entry=array(), $url_encode=false, $esc_html=true, $nl2br=true, $format='html', $aux_data=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:118
$entry
Definition: notes.php:27