/** * Constructor method * * @package BP Reshare * @subpackage Component * @since 1.0 * * @uses buddyreshare_get_component_id() to get the id of the component * @uses buddyreshare_get_component_name() to get the name of the component * @uses buddyreshare_get_includes_dir() to get plugin's include dir * @uses buddypress() to get BuddyPress main instance */ function __construct() { parent::start(buddyreshare_get_component_id(), buddyreshare_get_component_name(), buddyreshare_get_includes_dir()); buddypress()->active_components[$this->id] = '1'; $this->includes(); $this->setup_hooks(); }
function buddyreshare_component_name() { echo buddyreshare_get_component_name(); }