classes/PodsComponents.php
public function activate_component( $component ) {

		$activated = false;

		if ( ! $this->is_component_active( $component ) ) {
			if ( empty( $this->components ) ) {
				// Setup components
				PodsInit::$components->get_components();
			}

			if ( isset( $this->components[ $component ] ) ) {
				$this->settings['components'][ $component ] = array();

				$this->update_settings( $this->settings );

				$activated = true;
			}
		} else {
			$activated = true;
		}//end if

		return $activated;

	}
public function activate_component( $component ) {

		$activated = false;

		if ( ! $this->is_component_active( $component ) ) {
			if ( empty( $this->components ) ) {
				// Setup components
				PodsInit::$components->get_components();
			}

			if ( isset( $this->components[ $component ] ) ) {
				$this->settings['components'][ $component ] = array();

				$this->update_settings( $this->settings );

				$activated = true;
			}
		} else {
			$activated = true;
		}//end if

		return $activated;

	}
public function activate_component ( $ component ) { $ activated = false ; if ( ! $ this -> is_component_active ( $ component ) ) { if ( empty ( $ this -> components ) ) { // Setup components PodsInit :: $ components -> get_components ( ) ; } if ( isset ( $ this -> components [ $ component ] ) ) { $ this -> settings [ 'components' ] [ $ component ] = array ( ) ; $ this -> update_settings ( $ this -> settings ) ; $ activated = true ; } } else { $ activated = true ; } //end if return $ activated ; }
Activate a component

@param string $component The component name to activate.

@return boolean Whether the component was activated.

@since 2.7.0
Activate a component