cf7_style_event_table_head

The Contact Form 7 Style cf7 style event table head function.

Description

cf7_style_event_table_head( $defaults ); 

Parameters (1)

0. $defaults
The defaults.

Usage

  1. if ( !function_exists( 'cf7_style_event_table_head' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-style/cf7-style.php'; 
  3.  
  4. // The defaults. 
  5. $defaults = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf7_style_event_table_head($defaults); 
  9.  

Defined (1)

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

/cf7-style.php  
  1. function cf7_style_event_table_head( $defaults ) { 
  2. $new = array(); 
  3. foreach( $defaults as $key=>$value) { 
  4. if( $key=='title') { // when we find the date column 
  5. $new['preview-style'] = 'Preview Style'; 
  6. }  
  7. $new[$key]=$value; 
  8. }  
  9. return $new;