Profile_User::prepareInputForAdd PHP Method

prepareInputForAdd() public method

public prepareInputForAdd ( $input )
    function prepareInputForAdd($input)
    {
        // TODO: check if the entities should not be inherited from the profile or the user
        if (!isset($input['entities_id']) || $input['entities_id'] < 0) {
            Session::addMessageAfterRedirect(__('No selected element or badly defined operation'), false, ERROR);
            return false;
        }
        return parent::prepareInputForAdd($input);
    }