cf_live_gravatar_field

The Caldera Forms cf live gravatar field function.

Description

cf_live_gravatar_field( $fieldtypes ); 

Parameters (1)

0. $fieldtypes
The fieldtypes.

Usage

  1. if ( !function_exists( 'cf_live_gravatar_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-forms/includes/custom_field_class.php'; 
  3.  
  4. // The fieldtypes. 
  5. $fieldtypes = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf_live_gravatar_field($fieldtypes); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/custom_field_class.php  
  1. function cf_live_gravatar_field($fieldtypes) { 
  2.  
  3. $fieldtypes['live_gravatar'] = array( 
  4. "field" => "Gravatar",  
  5. "file" => CFCORE_PATH . "fields/gravatar/field.php",  
  6. "category" => __( 'Special' , 'caldera-forms' ),  
  7. "description" => 'A live gravatar preview',  
  8. 'icon' => CFCORE_URL . 'assets/build/images/user.svg',  
  9. "setup" => array( 
  10. "template" => CFCORE_PATH . "fields/gravatar/config.php",  
  11. "preview" => CFCORE_PATH . "fields/gravatar/preview.php",  
  12. "not_supported" => array( 
  13. 'entry_list',  
  14. 'custom_class' 
  15. ); 
  16. return $fieldtypes;