src/Pages/MemberProfilePageController.php
protected function indexRegister()
    {
        if (!$this->AllowRegistration) {
            return Security::permissionFailure($this, _t(
                'MemberProfiles.CANNOTREGPLEASELOGIN',
                'You cannot register on this profile page. Please login to edit your profile.'
            ));
        }

        $data = array(
            'Type'    => 'Register',
            'Title'   => $this->obj('RegistrationTitle'),
            'Content' => $this->obj('RegistrationContent'),
            'Form'    => $this->RegisterForm()
        );

        return $this->customise($data);
    }
protected function indexRegister()
    {
        if (!$this->AllowRegistration) {
            return Security::permissionFailure($this, _t(
                'MemberProfiles.CANNOTREGPLEASELOGIN',
                'You cannot register on this profile page. Please login to edit your profile.'
            ));
        }

        $data = array(
            'Type'    => 'Register',
            'Title'   => $this->obj('RegistrationTitle'),
            'Content' => $this->obj('RegistrationContent'),
            'Form'    => $this->RegisterForm()
        );

        return $this->customise($data);
    }
protected function indexRegister ( ) { if ( ! $ this -> AllowRegistration ) { return Security :: permissionFailure ( $ this , _t ( 'MemberProfiles.CANNOTREGPLEASELOGIN' , 'You cannot register on this profile page. Please login to edit your profile.' ) ) ; } $ data = array ( 'Type' => 'Register' , 'Title' => $ this -> obj ( 'RegistrationTitle' ) , 'Content' => $ this -> obj ( 'RegistrationContent' ) , 'Form' => $ this -> RegisterForm ( ) ) ; return $ this -> customise ( $ data ) ; }
Allow users to register if registration is enabled.

@return array|ViewableData_Customised
Allow users to register if registration is enabled .