'enabled',
'accept_terms' => false,
);
function display() {
?>
background_updates == 'enabled' ) {
$this->accept_terms = false;
} elseif ( empty( $this->accept_terms ) ) {
$this->set_field_validation_result( 'accept_terms', esc_html__( 'Please accept the terms.', 'gravityforms' ) );
$valid = false;
}
return $valid;
}
function summary( $echo = true ){
$html = $this->background_updates !== 'disabled' ? esc_html__( 'Enabled', 'gravityforms' ) . ' ' : esc_html__( 'Disabled', 'gravityforms' ) . ' ' ;
if ( $echo ) {
echo $html;
}
return $html;
}
function install(){
update_option( 'gform_enable_background_updates', $this->background_updates != 'disabled' );
}
}