gde_profile_option

The Google Doc Embedder gde profile option function.

Description

gde_profile_option( $option, $value, $label, (string) $helptext = '' ); 

Parameters (4)

0. $option
The option.
1. $value
The value.
2. $label
The label.
3. $helptext — Optional. (string) => ''
The helptext.

Usage

  1. if ( !function_exists( 'gde_profile_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/options.php'; 
  3.  
  4. // The option. 
  5. $option = null; 
  6.  
  7. // The value. 
  8. $value = null; 
  9.  
  10. // The label. 
  11. $label = null; 
  12.  
  13. // The helptext. 
  14. $helptext = ''; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = gde_profile_option($option, $value, $label, $helptext); 
  18.  

Defined (1)

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

/options.php  
  1. function gde_profile_option( $option, $value, $label, $helptext = '' ) { 
  2. echo "<option value=\"".esc_attr($value)."\""; 
  3. if ( ! empty( $helptext ) ) { 
  4. echo " title=\"".esc_attr($helptext)."\""; 
  5. if ( $option == $value ) { 
  6. echo ' selected="selected"'; 
  7. echo ">$label  </option>\n";