bp_group_tinychat_setup_globals

Bp_group_tinychat_setup_globals().

Description

bp_group_tinychat_setup_globals(); 

Sets up global variables for your component.


Usage

  1. if ( !function_exists( 'bp_group_tinychat_setup_globals' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-group-tiny-chat/includes/bp-group-tinychat-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_group_tinychat_setup_globals(); 
  7.  

Defined (1)

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

/includes/bp-group-tinychat-core.php  
  1. function bp_group_tinychat_setup_globals() { 
  2. global $bp, $wpdb; 
  3.  
  4. /** For internal identification */ 
  5. $bp->tinychat->id = 'tinychat'; 
  6.  
  7. $bp->tinychat->table_name = $wpdb->base_prefix . bp_group_tinychat; 
  8. $bp->tinychat->format_notification_function = 'bp_group_tinychat_format_notifications'; 
  9. $bp->tinychat->slug = BP_GROUP_tinychat_SLUG; 
  10.  
  11. /** Register this in the active components array */ 
  12. $bp->active_components[$bp->tinychat->slug] = $bp->tinychat->id;